summaryrefslogtreecommitdiff
path: root/src/linux/up-device-wup.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-wup.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-wup.c')
-rw-r--r--src/linux/up-device-wup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/up-device-wup.c b/src/linux/up-device-wup.c
index 4e82bba..4639af7 100644
--- a/src/linux/up-device-wup.c
+++ b/src/linux/up-device-wup.c
@@ -406,7 +406,7 @@ up_device_wup_refresh (UpDevice *device)
}
/* reset time */
- 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);
out:
g_free (data);