summaryrefslogtreecommitdiff
path: root/src/linux/up-device-unifying.c
diff options
context:
space:
mode:
authorEvangelos Foutras <evangelos@foutrelis.com>2014-10-02 16:04:31 +0300
committerRichard Hughes <richard@hughsie.com>2014-10-08 19:32:05 +0100
commitbbe15b14dec5016f0763772cc770a784483ac24a (patch)
tree59410d0024ca993adac14708f930d474bea6bf67 /src/linux/up-device-unifying.c
parent5ddfe0dba19c069b16a1b38cac2fa9dc8372862d (diff)
downloadupower-bbe15b14dec5016f0763772cc770a784483ac24a.tar.gz
all: convert value from g_get_real_time() to seconds
Commit 5ddfe0d (all: Use g_get_real_time() when possible) replaced calls to g_get_current_time() with g_get_real_time(), however, we also need to convert the return value from microseconds to seconds. Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'src/linux/up-device-unifying.c')
-rw-r--r--src/linux/up-device-unifying.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-unifying.c b/src/linux/up-device-unifying.c
index 2795831..80b12f3 100644
--- a/src/linux/up-device-unifying.c
+++ b/src/linux/up-device-unifying.c
@@ -103,7 +103,7 @@ up_device_unifying_refresh (UpDevice *device)
"is-present", hidpp_device_is_reachable (priv->hidpp_device),
"percentage", (gdouble) hidpp_device_get_batt_percentage (priv->hidpp_device),
"state", state,
- "update-time", (guint64) g_get_real_time (),
+ "update-time", (guint64) g_get_real_time () / G_USEC_PER_SEC,
NULL);
out:
return TRUE;