abuild: use portable awk exponentiation operator

This commit is contained in:
A. Wilcox 2017-06-23 07:52:18 +00:00 committed by Timo Teräs
parent 597a7f167b
commit f39ef92cde

View File

@ -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]) }'
}