Skip to content

Commit

Permalink
Show idle processes holding devices at full power
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
verygreen authored and nswamina committed Jul 21, 2016
1 parent ddba023 commit 9522718
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/process/process.cpp
Expand Up @@ -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]);
}

Expand Down

0 comments on commit 9522718

Please sign in to comment.