generic/386: fill missing brackets in awk
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Mon, 30 Dec 2019 02:57:57 +0000 (10:57 +0800)
committerEryu Guan <guaneryu@gmail.com>
Fri, 3 Jan 2020 07:23:58 +0000 (15:23 +0800)
Since commit ea726c4a55c98 to check the correct field from df output,
it introduced a syntax error. Fix it.

Reported-by: Feiyu Zhu <zhufy.jy@cn.fujitsu.com>
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/386

index 1291dae04e97174adeaf1dd8ac15062778a3899c..03c010f70ce6e6ce3d3b68e8f6a65847501df32a 100755 (executable)
@@ -89,7 +89,7 @@ _filter_quota_rpt() {
                        bsize = byte_size($4);
                } else if ($NF ~ proj_dir) {
                        # this is the "df" output
-                       bsize = byte_size($NF-4));
+                       bsize = byte_size($(NF-4));
                } else {
                        next;
                }