From: Nathan Scott Date: Sat, 17 Dec 2005 14:08:06 +0000 (+0000) Subject: Make xfs_quota reporting match standard tools wrt timestamp rounding. X-Git-Tag: v2.8.0~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0df88e17e97d4348746de864d4310691e596cb76;p=thirdparty%2Fxfsprogs-dev.git Make xfs_quota reporting match standard tools wrt timestamp rounding. Merge of master-melb:xfs-cmds:24861a by kenmcd. --- diff --git a/quota/util.c b/quota/util.c index ea177b284..51afdb08b 100644 --- a/quota/util.c +++ b/quota/util.c @@ -42,6 +42,9 @@ time_to_string( time(&now); timer = MAX(origin - now, 0); } + if (timer > 60) /* roundup */ + timer += 30; + days = timer / SECONDS_IN_A_DAY; if (days) timer %= SECONDS_IN_A_DAY;