From 84da06013e185facd6782e6de229f34cf32cf01f Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Tue, 19 Jun 2007 22:52:44 +0000 Subject: Reduce the amount of rounding. Since btimed doesn't go away anymore, we don't need to round so much. --- btimed.c | 4 ++-- 1 file 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; } -- cgit