diff options
author | Nate Straz <nstraz@redhat.com> | 2007-06-19 22:52:44 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:47 -0400 |
commit | 84da06013e185facd6782e6de229f34cf32cf01f (patch) | |
tree | 153948ad2f00312fc99e7e1a3e3453d1353eac41 /btimed.c | |
parent | 08d6e063d2dffe07cff74eb8ede814b7501ae123 (diff) | |
download | qarsh-84da06013e185facd6782e6de229f34cf32cf01f.tar.gz qarsh-84da06013e185facd6782e6de229f34cf32cf01f.tar.xz qarsh-84da06013e185facd6782e6de229f34cf32cf01f.zip |
Reduce the amount of rounding. Since btimed doesn't go away anymore, we don't need to round so much.
Diffstat (limited to 'btimed.c')
-rw-r--r-- | btimed.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -98,7 +98,7 @@ main(int argc, char **argv) * * get_btime -- * - * Return machine's boot time rounded up to the nearest minute. + * Return machine's boot time rounded up to the nearest five seconds. * * Returns: * 0 on failure @@ -115,6 +115,6 @@ get_btime(void) struct tms tms; btime = time(0) - (times(&tms) / hertz); - btime = btime - (btime % 60) + 60; + btime = btime - (btime % 5) + 5; return btime; } |