]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_quota: remove extra 30 seconds from time limit reporting
authorEric Sandeen <sandeen@sandeen.net>
Thu, 4 Feb 2016 21:42:53 +0000 (08:42 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 4 Feb 2016 21:42:53 +0000 (08:42 +1100)
The addition of 30s makes little sense; it's only added to the
values reported via the userspace tool, and doesn't reflect the
actual values used in the kernel. Setting a time limit to
"00:30:00" and reporting back "00:30:30" makes little sense to me.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
quota/util.c

index 179aafd2c55147382ca90437b98f68f6faf99edb..7c43fbd8df480705b86b6f97e88893795e8682a5 100644 (file)
@@ -42,8 +42,6 @@ time_to_string(
                time(&now);
                timer = MAX(origin - now, 0);
        }
-       if (timer > 60) /* roundup */
-               timer += 30;
 
        days = timer / SECONDS_IN_A_DAY;
        if (days)