diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2016-06-18 20:26:02 -0400 |
---|---|---|
committer | Nivedita Swaminathan <nivedita.swaminathan@intel.com> | 2016-07-21 15:12:34 -0700 |
commit | 952271833104da0a3146904ff2ea89a70c0e7fab (patch) | |
tree | 4d899ca54552231aa4188e25ad036a3d0ee2423e | |
parent | ddba023b8650effe4ee361b7d6e847d546e2b44b (diff) | |
download | powertop-2.0-952271833104da0a3146904ff2ea89a70c0e7fab.tar.gz |
Show idle processes holding devices at full power
Even if process did not spend any time running but holds
a device open, it deserves its line on the "Wall of Shame".
Otherwise we get erratic "now we show it, now we don't"
behavior which is confusing.
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
-rw-r--r-- | src/process/process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process/process.cpp b/src/process/process.cpp index 25de86f..caeccec 100644 --- a/src/process/process.cpp +++ b/src/process/process.cpp @@ -230,7 +230,8 @@ void all_processes_to_all_power(void) { unsigned int i; for (i = 0; i < all_processes.size() ; i++) - if (all_processes[i]->accumulated_runtime) + if (all_processes[i]->accumulated_runtime || + all_processes[i]->power_charge) all_power.push_back(all_processes[i]); } |