]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
Make xfs_quota reporting match standard tools wrt timestamp rounding.
authorNathan Scott <nathans@sgi.com>
Sat, 17 Dec 2005 14:08:06 +0000 (14:08 +0000)
committerNathan Scott <nathans@sgi.com>
Sat, 17 Dec 2005 14:08:06 +0000 (14:08 +0000)
Merge of master-melb:xfs-cmds:24861a by kenmcd.

quota/util.c

index ea177b284063a0d8bac567978db7ae84aee54478..51afdb08b615f725c0e858c733bf44005c2082a1 100644 (file)
@@ -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;