summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <chingpang@gmail.com>2012-04-27 14:28:00 +0800
committerRichard Hughes <richard@hughsie.com>2012-04-27 16:05:39 +0100
commitc17a3f0d7069cea13a7552eefaa5d3216d6a28d7 (patch)
tree2218a92e782eb88931cec2e2313a3f6f53b4ba6b
parentbf56cecab4d0c654ddff1c1884c7b6726138b9ab (diff)
Correct the cap on the energy rate
Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r--src/linux/up-device-supply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index 073c364..2afbac5 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -678,7 +678,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply)
energy_rate = 0;
/* sanity check to less than 100W */
- if (energy_rate > 100*1000)
+ if (energy_rate > 100)
energy_rate = 0;
/* the hardware reporting failed -- try to calculate this */