[gnome-settings-daemon] updates: g_get_real_time() returns microseconds, not seconds since the epoch
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] updates: g_get_real_time() returns microseconds, not seconds since the epoch
- Date: Tue, 15 Mar 2011 18:08:21 +0000 (UTC)
commit e632b68d99835690bf5d6114706b92172cf00ec2
Author: Richard Hughes <richard hughsie com>
Date: Tue Mar 15 18:05:51 2011 +0000
updates: g_get_real_time() returns microseconds, not seconds since the epoch
plugins/updates/gsd-updates-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index 337f1e6..aa41771 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -350,7 +350,7 @@ notify_normal_updates_maybe (GsdUpdatesManager *manager, GPtrArray *array)
NotifyNotification *notification;
/* find out if enough time has passed since the last notification */
- time_now = g_get_real_time ();
+ time_now = g_get_real_time () / 1000000;
freq_updates_notify = g_settings_get_int (manager->priv->settings_gsd,
GSD_SETTINGS_FREQUENCY_UPDATES_NOTIFICATION);
g_settings_get (manager->priv->settings_gsd,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]