From 0df88e17e97d4348746de864d4310691e596cb76 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Sat, 17 Dec 2005 14:08:06 +0000 Subject: [PATCH] Make xfs_quota reporting match standard tools wrt timestamp rounding. Merge of master-melb:xfs-cmds:24861a by kenmcd. --- quota/util.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.47.2