[PATCH] Correct the cap on the energy rate

Gary Ching-Pang Lin chingpang at gmail.com
Thu Apr 26 23:28:00 PDT 2012


---
 src/linux/up-device-supply.c |    2 +-
 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 */
-- 
1.7.7



More information about the devkit-devel mailing list