mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 13:28:07 +02:00
openbsd: time-to-empty is in seconds
Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
parent
0d7b9fe1d5
commit
164ac63f8d
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ up_backend_update_battery_state(UpDevice* device, struct apm_power_info a)
|
|||
g_object_set (device,
|
||||
"state", new_state,
|
||||
"percentage", (gdouble) a.battery_life,
|
||||
"time-to-empty", new_time_to_empty,
|
||||
"time-to-empty", new_time_to_empty * 60,
|
||||
"update-time", (guint64) timeval.tv_sec,
|
||||
(void*) NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue