Skip to content

Commit

Permalink
src/parameters: fix: set the global parameter "global_power_override"…
Browse files Browse the repository at this point in the history
… to 1 to get power estimate

PowerTop gives power estimate to devices and processes under certain
conditions. However, due the parameter called "global_power_override"
which is set to 0, the condition to print the power estimate was never
met.Thus, PowerTop doesnt display power estimates.

To fix this issue, set the global parameter to 1 which will make the
condition true always.

Signed-off-by: Gayatri Kammela <[email protected]>
  • Loading branch information
gkammela authored and nswamina committed Sep 26, 2019
1 parent c39dfce commit c9f6f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parameters/parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ int utilization_power_valid(int index)


/* force power data to be valid to the rest of the system */
int global_power_override = 0;
int global_power_override = 1;
int global_run_times=0;
/*
* only report power numbers once we have 3* more measurements than
Expand Down

0 comments on commit c9f6f44

Please sign in to comment.