--- 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 _______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel