Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/gsm-session.c
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-12-06 21:29:39 (GMT)
committer Daniel Drake <dsd@laptop.org>2008-12-18 19:56:08 (GMT)
commit2937a09ead08858a6bb4176ecafb4c1bf7dff735 (patch)
treecaabd26787e1237146cf1d80149bf12c0aaefe3c /src/sugar/gsm-session.c
parent96da9d490ef18fa35893314d4d2b6ee75de0767a (diff)
Use g_timeout_add_seconds() for power efficiency
This attempts to align second-granularity wakeups across the system, reducing CPU wakeups a little. I considered all timeouts of duration 1 second or greater, and moved the non-timing-critical ones to g_timeout_add_seconds(). (Actually, I didn't find any that I felt were timing-critical)
Diffstat (limited to 'src/sugar/gsm-session.c')
-rw-r--r--src/sugar/gsm-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/gsm-session.c b/src/sugar/gsm-session.c
index b1f4f0e..0fe2fb5 100644
--- a/src/sugar/gsm-session.c
+++ b/src/sugar/gsm-session.c
@@ -203,7 +203,7 @@ start_phase (GsmSession *session)
{
if (session->phase < GSM_SESSION_PHASE_APPLICATION)
{
- session->timeout = g_timeout_add (GSM_SESSION_PHASE_TIMEOUT * 1000,
+ session->timeout = g_timeout_add_seconds (GSM_SESSION_PHASE_TIMEOUT,
phase_timeout, session);
}
}