summaryrefslogtreecommitdiff
path: root/miscutils/time.c
diff options
context:
space:
mode:
authorEric Andersen2002-09-30 19:37:48 +0000
committerEric Andersen2002-09-30 19:37:48 +0000
commite4d2a43951a2610925e43e9081f4b1027e94aa2c (patch)
treec851e1860377d8db1485f6853fa2566f5d330c3d /miscutils/time.c
parent5c99581880a40ab8a41b66b2970907e11a22858c (diff)
downloadbusybox-e4d2a43951a2610925e43e9081f4b1027e94aa2c.zip
busybox-e4d2a43951a2610925e43e9081f4b1027e94aa2c.tar.gz
Doh. We divide microseconds by 60?
Diffstat (limited to 'miscutils/time.c')
-rw-r--r--miscutils/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/time.c b/miscutils/time.c
index 3a44b18..fa352a8 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -313,7 +313,7 @@ static void summarize (FILE *fp, const char *fmt, char **command, resource_t *re
fprintf (fp, "%ldh %ldm %02lds",
resp->ru.ru_stime.tv_sec / 3600,
(resp->ru.ru_stime.tv_sec % 3600) / 60,
- resp->ru.ru_stime.tv_usec % 60);
+ resp->ru.ru_stime.tv_sec % 60);
else
fprintf (fp, "%ldm %ld.%02lds", /* -> m:s. */
resp->ru.ru_stime.tv_sec / 60,
@@ -330,7 +330,7 @@ static void summarize (FILE *fp, const char *fmt, char **command, resource_t *re
fprintf (fp, "%ldh %ldm %02lds",
resp->ru.ru_utime.tv_sec / 3600,
(resp->ru.ru_utime.tv_sec % 3600) / 60,
- resp->ru.ru_utime.tv_usec % 60);
+ resp->ru.ru_utime.tv_sec % 60);
else
fprintf (fp, "%ldm %ld.%02lds", /* -> m:s. */
resp->ru.ru_utime.tv_sec / 60,