]> mj.ucw.cz Git - ywho.git/blobdiff - ywho.c
First line: report proper run time on SMP machines
[ywho.git] / ywho.c
diff --git a/ywho.c b/ywho.c
index f0c63a3ceae74c96602d91e38bf286a9caf9627c..0b4670e6ae250c1f3807a51c32239f3284c6cf2e 100644 (file)
--- a/ywho.c
+++ b/ywho.c
@@ -250,8 +250,8 @@ line1(void)
       sscanf(line, "%d.%d%d.%d", &p, &p1, &q, &q1);
       printf(" up ");
       puttime(p);
-      printf(" idle ");
-      puttime(q);
+      printf(" run ");
+      puttime(num_cpus*p - q);
       fclose(f);
     }