aboutsummaryrefslogtreecommitdiff
path: root/devices/thinkpad-fan.cpp
diff options
context:
space:
mode:
authorarjan <arjan@arjan-desktop.localdomain>2010-09-11 12:58:20 -0700
committerarjan <arjan@arjan-desktop.localdomain>2010-09-11 12:58:20 -0700
commit13183e1219c73677cf83ffcab067ba6158789816 (patch)
treee4e60ac480fc4536483ab57b39649252f242459b /devices/thinkpad-fan.cpp
parentfad77e4a04efe8bfaa60d5a098cea3036e619ed6 (diff)
downloadpowertop-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.cpp3
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;