Skip to content

Commit ba084d9

Browse files
committed
Use named variable
1 parent dbf6b6e commit ba084d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/git/scripts/cocomo_81_basic_per_pkg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ BEGIN {
3434
}
3535
3636
$6 ~ /JavaScript/ {
37+
pkg = $1
3738
loc = $3
3839
3940
sloc = loc * loc_sf
@@ -51,7 +52,7 @@ $6 ~ /JavaScript/ {
5152
# Compute the cost based on developer salary:
5253
cost = people_required * salary * development_time/12
5354
54-
print "package" OFS $1
55+
print "package" OFS pkg
5556
print "kloc" OFS kloc
5657
print "development_time" OFS development_time
5758
print "effort_applied" OFS effort_applied

0 commit comments

Comments
 (0)