diff options
author | Daniel Drake <dsd@laptop.org> | 2008-12-06 21:29:39 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2008-12-18 19:56:08 (GMT) |
commit | 2937a09ead08858a6bb4176ecafb4c1bf7dff735 (patch) | |
tree | caabd26787e1237146cf1d80149bf12c0aaefe3c /src/sugar/gsm-client-xsmp.c | |
parent | 96da9d490ef18fa35893314d4d2b6ee75de0767a (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-client-xsmp.c')
-rw-r--r-- | src/sugar/gsm-client-xsmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sugar/gsm-client-xsmp.c b/src/sugar/gsm-client-xsmp.c index dcacc6f..04c7de4 100644 --- a/src/sugar/gsm-client-xsmp.c +++ b/src/sugar/gsm-client-xsmp.c @@ -110,7 +110,7 @@ gsm_client_xsmp_new (IceConn ice_conn) client_iochannel_watch, xsmp); g_io_channel_unref (channel); - xsmp->protocol_timeout = g_timeout_add (5000, client_protocol_timeout, xsmp); + xsmp->protocol_timeout = g_timeout_add_seconds (5, client_protocol_timeout, xsmp); set_description (xsmp); g_debug ("New client '%s'", xsmp->description); |