summaryrefslogtreecommitdiff
path: root/src/linux/up-device-supply.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-supply.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-supply.c')
-rw-r--r--src/linux/up-device-supply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-supply.c b/src/linux/up-device-supply.c
index 075235c..ad86ede 100644
--- a/src/linux/up-device-supply.c
+++ b/src/linux/up-device-supply.c
@@ -1109,7 +1109,7 @@ up_device_supply_refresh (UpDevice *device)
/* reset time if we got new data */
if (ret)
- g_object_set (device, "update-time", (guint64) g_get_real_time (), NULL);
+ g_object_set (device, "update-time", (guint64) g_get_real_time () / G_USEC_PER_SEC, NULL);
return ret;
}