diff options
author | Richard Hughes <richard@hughsie.com> | 2010-03-26 11:16:39 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2010-03-26 11:29:38 +0000 |
commit | daa2d5f3b745e52e9b2a9117d8020e7d4378369a (patch) | |
tree | 6ba9c76260a98181ef35d9660016ec4e954a961f /src | |
parent | c30d15d9b9a7bcfddcedf123385ff65756c2477f (diff) | |
download | upower-daa2d5f3b745e52e9b2a9117d8020e7d4378369a.tar.gz |
Do not warn what we are correcting energy-full when there is no data to copy
Diffstat (limited to 'src')
-rw-r--r-- | 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 bb0c75e..173959a 100644 --- a/src/linux/up-device-supply.c +++ b/src/linux/up-device-supply.c @@ -484,7 +484,7 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply) energy_full, energy_full_design); /* some systems don't have this */ - if (energy_full < 0.01) { + if (energy_full < 0.01 && energy_full_design > 0.01) { egg_warning ("correcting energy_full (%f) using energy_full_design (%f)", energy_full, energy_full_design); energy_full = energy_full_design; |