File upower-energy-rate-cap.patch of Package upower.openSUSE_12.1_Update

From 2dc713739ce097de65a4b7a394d6ac164c629e4b Mon Sep 17 00:00:00 2001
From: Gary Ching-Pang Lin <chingpang@gmail.com>
Date: Fri, 27 Apr 2012 12:31:49 +0800
Subject: [PATCH] Correct the cap on the energy rate

---
 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

openSUSE Build Service is sponsored by