mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Doh. We divide microseconds by 60?
This commit is contained in:
parent
5c99581880
commit
e4d2a43951
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user