From bbe15b14dec5016f0763772cc770a784483ac24a Mon Sep 17 00:00:00 2001 From: Evangelos Foutras Date: Thu, 2 Oct 2014 16:04:31 +0300 Subject: 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 --- src/linux/up-device-hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/linux/up-device-hid.c') diff --git a/src/linux/up-device-hid.c b/src/linux/up-device-hid.c index 5933394..4bf5a53 100644 --- a/src/linux/up-device-hid.c +++ b/src/linux/up-device-hid.c @@ -427,7 +427,7 @@ up_device_hid_refresh (UpDevice *device) up_device_hid_fixup_state (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: return ret; } -- cgit v1.2.1