openbsd: time-to-empty is in seconds

Signed-off-by: Richard Hughes <richard@hughsie.com>
This commit is contained in:
Landry Breuil 2011-03-06 14:55:04 +01:00 committed by Richard Hughes
parent 0d7b9fe1d5
commit 164ac63f8d

View file

@ -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);
}