From 2937a09ead08858a6bb4176ecafb4c1bf7dff735 Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Sat, 06 Dec 2008 21:29:39 +0000 Subject: 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) --- (limited to 'src/sugar/gsm-client-xsmp.c') 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); -- cgit v0.9.1