From: Eric Sandeen Date: Thu, 4 Feb 2016 21:42:53 +0000 (+1100) Subject: xfs_quota: remove extra 30 seconds from time limit reporting X-Git-Tag: v4.5.0-rc1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d1fe6ff;p=thirdparty%2Fxfsprogs-dev.git xfs_quota: remove extra 30 seconds from time limit reporting 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 Reviewed-by: Carlos Maiolino Signed-off-by: Dave Chinner --- diff --git a/quota/util.c b/quota/util.c index 179aafd2c..7c43fbd8d 100644 --- a/quota/util.c +++ b/quota/util.c @@ -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)