diff options
author | arjan <arjan@arjan-desktop.localdomain> | 2010-09-11 12:58:20 -0700 |
---|---|---|
committer | arjan <arjan@arjan-desktop.localdomain> | 2010-09-11 12:58:20 -0700 |
commit | 13183e1219c73677cf83ffcab067ba6158789816 (patch) | |
tree | e4e60ac480fc4536483ab57b39649252f242459b /devices/thinkpad-fan.cpp | |
parent | fad77e4a04efe8bfaa60d5a098cea3036e619ed6 (diff) | |
download | powertop-13183e1219c73677cf83ffcab067ba6158789816.tar.gz |
create a tool to draw a "how does this device's power look like in a graph in gnuplot" graph
Diffstat (limited to 'devices/thinkpad-fan.cpp')
-rw-r--r-- | devices/thinkpad-fan.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/devices/thinkpad-fan.cpp b/devices/thinkpad-fan.cpp index a9fe46c..11b7284 100644 --- a/devices/thinkpad-fan.cpp +++ b/devices/thinkpad-fan.cpp @@ -24,6 +24,7 @@ thinkpad_fan::thinkpad_fan() void thinkpad_fan::start_measurement(void) { + /* read the rpms of the fan */ start_rate = read_sysfs("/sys/devices/platform/thinkpad_hwmon/fan1_input"); } @@ -68,7 +69,7 @@ double thinkpad_fan::power_usage(struct result_bundle *result, struct parameter_ factor = get_parameter_value("thinkpad-fan", bundle); utilization = get_result_value("thinkpad-fan", result); - utilization = utilization - 60; + utilization = utilization - 50; if (utilization < 0) utilization = 0; |