summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}