diff options
Diffstat (limited to 'src/up-wakeups.c')
-rw-r--r-- | src/up-wakeups.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/up-wakeups.c b/src/up-wakeups.c index 6a883db..ee7368a 100644 --- a/src/up-wakeups.c +++ b/src/up-wakeups.c @@ -634,9 +634,7 @@ up_wakeups_timerstats_enable (UpWakeups *wakeups) wakeups->priv->disable_id = g_timeout_add_seconds (UP_WAKEUPS_DISABLE_INTERVAL, (GSourceFunc) up_wakeups_disable_cb, wakeups); -#if GLIB_CHECK_VERSION(2,25,8) g_source_set_name_by_id (wakeups->priv->disable_id, "[UpWakeups] disable"); -#endif /* already same state */ if (wakeups->priv->polling_enabled) @@ -648,15 +646,12 @@ up_wakeups_timerstats_enable (UpWakeups *wakeups) wakeups->priv->poll_kernel_id = g_timeout_add_seconds (UP_WAKEUPS_POLL_INTERVAL_KERNEL, (GSourceFunc) up_wakeups_poll_kernel_cb, wakeups); -#if GLIB_CHECK_VERSION(2,25,8) g_source_set_name_by_id (wakeups->priv->poll_kernel_id, "[UpWakeups] kernel"); -#endif + wakeups->priv->poll_userspace_id = g_timeout_add_seconds (UP_WAKEUPS_POLL_INTERVAL_USERSPACE, (GSourceFunc) up_wakeups_poll_userspace_cb, wakeups); -#if GLIB_CHECK_VERSION(2,25,8) g_source_set_name_by_id (wakeups->priv->poll_userspace_id, "[UpWakeups] userspace"); -#endif file = fopen (UP_WAKEUPS_SOURCE_USERSPACE, "w"); if (file == NULL) |