abuild: use portable awk exponentiation operator
This commit is contained in:
parent
597a7f167b
commit
f39ef92cde
@ -1333,7 +1333,7 @@ scan_pkgconfig_depends() {
|
|||||||
human_size() {
|
human_size() {
|
||||||
awk '{ split("B KB MB GB TB PB", type)
|
awk '{ split("B KB MB GB TB PB", type)
|
||||||
for(i=5; y < 1 && $1 > 0; i--)
|
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]) }'
|
printf("%.1f %s\n", y, type[i+2]) }'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user