diff options
author | Landry Breuil <landry@rhaalovely.net> | 2011-03-06 14:55:04 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2011-03-21 18:39:49 +0000 |
commit | 164ac63f8d57e7a9ea363266230391255c5f4f9f (patch) | |
tree | 929433842a09f4ce892546cc71133c2a411d296d | |
parent | 0d7b9fe1d5068d296f23dcd3f715f70cd69e01de (diff) |
openbsd: time-to-empty is in seconds
Signed-off-by: Richard Hughes <richard@hughsie.com>
-rw-r--r-- | src/openbsd/up-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openbsd/up-backend.c b/src/openbsd/up-backend.c index 57dfcd1..23b8626 100644 --- a/src/openbsd/up-backend.c +++ b/src/openbsd/up-backend.c @@ -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); } |