summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2007-06-19 22:52:44 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:47 -0400
commit84da06013e185facd6782e6de229f34cf32cf01f (patch)
tree153948ad2f00312fc99e7e1a3e3453d1353eac41
parent08d6e063d2dffe07cff74eb8ede814b7501ae123 (diff)
downloadqarsh-84da06013e185facd6782e6de229f34cf32cf01f.zip
qarsh-84da06013e185facd6782e6de229f34cf32cf01f.tar.gz
qarsh-84da06013e185facd6782e6de229f34cf32cf01f.tar.xz
Reduce the amount of rounding. Since btimed doesn't go away anymore, we don't need to round so much.
-rw-r--r--btimed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/btimed.c b/btimed.c
index 6633967..692e127 100644
--- a/btimed.c
+++ b/btimed.c
@@ -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;
}