Commit f39ef92c authored by A. Wilcox's avatar A. Wilcox Committed by Timo Teräs

abuild: use portable awk exponentiation operator

parent 597a7f16
......@@ -1333,7 +1333,7 @@ scan_pkgconfig_depends() {
human_size() {
awk '{ split("B KB MB GB TB PB", type)
for(i=5; y < 1 && $1 > 0; i--)
y = $1 / (2**(10*i))
y = $1 / (2^(10*i))
printf("%.1f %s\n", y, type[i+2]) }'
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment