diff options
author | Arjan van de Ven <arjan@linux.intel.com> | 2011-05-29 10:26:13 -0700 |
---|---|---|
committer | Arjan van de Ven <arjan@linux.intel.com> | 2011-05-29 10:26:13 -0700 |
commit | 9ed8a7c52c7e0267142beccc48abf8e63688d86d (patch) | |
tree | 89b8cef4931ae54a31703c815901ce18c2bbae0c | |
parent | 5be1a722057a01bff171e5a22174186b3e68ac0f (diff) | |
download | powertop-9ed8a7c52c7e0267142beccc48abf8e63688d86d.tar.gz |
report CPU usage prominently as suggested by Len Brown
-rw-r--r-- | process/do_process.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/process/do_process.cpp b/process/do_process.cpp index b5c1558..9ce0527 100644 --- a/process/do_process.cpp +++ b/process/do_process.cpp @@ -653,8 +653,8 @@ void process_update_display(void) wprintw(win, "\n"); - wprintw(win, "Summary: %3.1f wakeups/second, %3.1f GPU ops/second and %3.1f VFS ops/sec\n\n", - total_wakeups(), total_gpu_ops(), total_disk_hits()); + wprintw(win, "Summary: %3.1f wakeups/second, %3.1f GPU ops/second, %3.1f VFS ops/sec and %3.1f%% CPU use\n\n", + total_wakeups(), total_gpu_ops(), total_disk_hits(), total_cpu_time()*100); if (show_power) @@ -806,8 +806,8 @@ void html_summary(void) fprintf(htmlout, "<h2>Power consumption summary</h2>\n"); - fprintf(htmlout, "<p>%3.1f wakeups/second, %3.1f GPU ops/second and %3.1f VFS ops/sec</p>", - total_wakeups(), total_gpu_ops(), total_disk_hits()); + fprintf(htmlout, "<p>%3.1f wakeups/second, %3.1f GPU ops/second, %3.1f VFS ops/sec and %3.1f%% CPU use</p>", + total_wakeups(), total_gpu_ops(), total_disk_hits(), total_cpu_time()*100); fprintf(htmlout, "<table width=100%%>\n"); |