summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-11 15:15:43 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-11 15:15:43 -0500
commit54ff464bf97bf4b3dc26412979ce9ab5c90e308e (patch)
tree41a51ab6e630c7039dfa0ee16482f7a4e4c8f994
parentc3bfcd6e766598dc16997abcd4e1f89d9c3754c9 (diff)
log CPUHEADmaster
-rw-r--r--loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loop.c b/loop.c
index d18b191..923a120 100644
--- a/loop.c
+++ b/loop.c
@@ -89,8 +89,8 @@ int main(int argc, char** argv)
89 start = wctime(); 89 start = wctime();
90 waste_time(delay); 90 waste_time(delay);
91 end = wctime(); 91 end = wctime();
92 printf("%d: loop %d took %.2f seconds \n", 92 printf("%5d on P%d: loop %d took %.2f seconds \n",
93 getpid(), i++, end - start); 93 getpid(), cpu, i++, end - start);
94 suspend(delay * 4); /* about 20% utilization */ 94 suspend(delay * 4); /* about 20% utilization */
95 } 95 }
96 return 0; 96 return 0;