aboutsummaryrefslogtreecommitdiff
path: root/devices/ahci.cpp
diff options
context:
space:
mode:
authorArjan van de Ven <arjan@linux.intel.com>2010-12-20 17:10:02 -0800
committerArjan van de Ven <arjan@linux.intel.com>2010-12-20 17:10:02 -0800
commit84ea2ed5d34bf4a94fdafc031bf95d342c619538 (patch)
treeed769fd2297b6499b66adf540af3a82255eef322 /devices/ahci.cpp
parentfd4f1ffbf55176e091f6bbb6bfcb35971db3e8c9 (diff)
downloadpowertop-84ea2ed5d34bf4a94fdafc031bf95d342c619538.tar.gz
fix a bunch of compiler warnings due to careless variable naming choices
Diffstat (limited to 'devices/ahci.cpp')
-rw-r--r--devices/ahci.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/devices/ahci.cpp b/devices/ahci.cpp
index 8fa68df..1c38e05 100644
--- a/devices/ahci.cpp
+++ b/devices/ahci.cpp
@@ -276,18 +276,18 @@ double ahci::power_usage(struct result_bundle *result, struct parameter_bundle *
{
double power;
double factor;
- double utilization;
+ double util;
power = 0;
factor = get_parameter_value(active_index, bundle);
- utilization = get_result_value(active_rindex, result);
- power += utilization * factor / 100.0;
+ util = get_result_value(active_rindex, result);
+ power += util * factor / 100.0;
factor = get_parameter_value(partial_index, bundle);
- utilization = get_result_value(partial_rindex, result);
- power += utilization * factor / 100.0;
+ util = get_result_value(partial_rindex, result);
+ power += util * factor / 100.0;
return power;
} \ No newline at end of file