From: Martin Mares Date: Fri, 20 Aug 2010 15:24:56 +0000 (+0200) Subject: First line: report proper run time on SMP machines X-Git-Tag: v1.12~6 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=5e928734b19a129a6bbda6b5bba6a0670199e876;p=ywho.git First line: report proper run time on SMP machines Idle is reported per processor, uptime per system. --- diff --git a/ywho.c b/ywho.c index f0c63a3..0b4670e 100644 --- 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); }