pacsize: Fix total computation

master
Pierre Neidhardt 2015-09-26 15:46:09 +02:00
parent 3a9e8e71b2
commit 6246665a35
1 changed files with 5 additions and 1 deletions

View File

@ -33,7 +33,11 @@ calc_total () {
}
{
total += unit[$2]*$1
u=$1
gsub(/[[:digit:]]*/, "", u)
n=$1
gsub(/[[:alpha:]]*/, "", n)
total += unit[u]*n
print
}
END {