mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-24 21:28:16 +02:00
Do not warn what we are correcting energy-full when there is no data to copy
This commit is contained in:
parent
c30d15d9b9
commit
daa2d5f3b7
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue