[gnome-settings-daemon] color: Do not notify to recalibrate on every startup
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] color: Do not notify to recalibrate on every startup
- Date: Fri, 2 Sep 2011 09:15:54 +0000 (UTC)
commit 120fbd436257d412a3bd6e5f4cfb496bd7011f58
Author: Richard Hughes <richard hughsie com>
Date: Fri Sep 2 10:10:18 2011 +0100
color: Do not notify to recalibrate on every startup
The documentation was wrong in colord; the return value of cd_device_get_modified()
is the number of microseconds, not seconds.
plugins/color/gsd-color-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index c0c80d1..6b7a073 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -1584,7 +1584,7 @@ gcm_session_notify_device (GsdColorManager *manager, CdDevice *device)
}
/* check if we need to notify */
- since = (g_get_real_time () / G_USEC_PER_SEC) - cd_device_get_modified (device);
+ since = (g_get_real_time () - cd_device_get_modified (device)) / G_USEC_PER_SEC;
if (threshold > since)
gcm_session_notify_recalibrate (manager, title, message, kind);
g_free (device_title);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]