diff options
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; } |