Doh. We divide microseconds by 60?
authorEric Andersen <andersen@codepoet.org>
Mon, 30 Sep 2002 19:37:48 +0000 (19:37 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 30 Sep 2002 19:37:48 +0000 (19:37 -0000)
miscutils/time.c

index 3a44b18c8a738010b32ffb0bcb4834bf8e3a1a0a..fa352a8997e80593c39fb665de7eb3360a222a68 100644 (file)
@@ -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,