summaryrefslogtreecommitdiff
path: root/src/up-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/up-daemon.c')
-rw-r--r--src/up-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/up-daemon.c b/src/up-daemon.c
index 5d9fe87..77eb8a4 100644
--- a/src/up-daemon.c
+++ b/src/up-daemon.c
@@ -317,7 +317,7 @@ out:
"percentage", percentage_total,
"is-present", is_present_total,
"power-supply", TRUE,
- "update-time", (guint64) g_get_real_time (),
+ "update-time", (guint64) g_get_real_time () / G_USEC_PER_SEC,
NULL);
return TRUE;
@@ -757,7 +757,7 @@ up_daemon_set_warning_level (UpDaemon *daemon, UpDeviceLevel warning_level)
g_object_set (G_OBJECT (daemon->priv->display_device),
"warning-level", warning_level,
- "update-time", (guint64) g_get_real_time (),
+ "update-time", (guint64) g_get_real_time () / G_USEC_PER_SEC,
NULL);
if (daemon->priv->warning_level == UP_DEVICE_LEVEL_ACTION) {