mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-08 08:58:07 +02:00
linux: Bump maximum accepted "time to empty" to 10 days
In the days of low-power ARM devices and large laptop batteries, imposing a 20 hour plausibility limit on "time to full" is not appropriate any more. Bump it to 240 hours to still keep a plausibility check against "factor 1000" errors. https://bugs.freedesktop.org/show_bug.cgi?id=60110
This commit is contained in:
parent
66f8f80023
commit
275644a1b8
1 changed files with 2 additions and 2 deletions
|
|
@ -782,9 +782,9 @@ up_device_supply_refresh_battery (UpDeviceSupply *supply)
|
|||
|
||||
/* check the remaining time is under a set limit, to deal with broken
|
||||
primary batteries rate */
|
||||
if (time_to_empty > (20 * 60 * 60))
|
||||
if (time_to_empty > (240 * 60 * 60)) /* ten days for discharging */
|
||||
time_to_empty = 0;
|
||||
if (time_to_full > (20 * 60 * 60))
|
||||
if (time_to_full > (20 * 60 * 60)) /* 20 hours for charging */
|
||||
time_to_full = 0;
|
||||
|
||||
/* check if the energy value has changed and, if that's the case,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue