From 5e928734b19a129a6bbda6b5bba6a0670199e876 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 20 Aug 2010 17:24:56 +0200 Subject: [PATCH] First line: report proper run time on SMP machines Idle is reported per processor, uptime per system. --- ywho.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.2