Revert "fstests: Don't use gawk's strtonum"

This reverts commit 37520a314b.

This commit has been reported to regress, at least, xfs/139 and
btrfs/09[58]. Let's revert it for now.

Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Eryu Guan
2019-12-16 00:10:55 +08:00
parent 32bf2fee72
commit b25cac5542
3 changed files with 16 additions and 18 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 = value;
result = strtonum(value);
unit = value;
gsub("[0-9][0-9]*", "", unit);
shift = index("KMGTPE", unit);