fstests: Don't use gawk's strtonum

It's a gawk extension and not needed. Make tests pass with non-gawk.

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Kusanagi Kouichi
2019-12-02 18:43:01 +09:00
committed by Eryu Guan
parent 313f26e05f
commit 37520a314b
3 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ _filter_quota_rpt() {
# This function parses the human-readable values produced
# by xfs_quota output
function byte_size(value, result) {
result = strtonum(value);
result = value;
unit = value;
gsub("[0-9][0-9]*", "", unit);
shift = index("KMGTPE", unit);