# HG changeset patch # User Mark Doliner # Date 1180923770 0 # Node ID ae7a4134e499dc2e6ceb79186190cca84f737241 # Parent 3175a063aae1666ef262c5a1d14170f4de4866c9 Changing this timer to run every 50 milliseconds instead of every 5 milliseconds. The timer is used to integrate our glib mainloop with silcclient's mainloop. Some Red Hat people complained that the timer causes the CPU to wake up really often and that hurts out power consumption on laptops and what not. Ideally the integration wouldn't need the timeout thing and would instead by event-driven. http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=242398 diff -r 3175a063aae1 -r ae7a4134e499 libpurple/protocols/silc/silc.c --- a/libpurple/protocols/silc/silc.c Mon Jun 04 01:46:18 2007 +0000 +++ b/libpurple/protocols/silc/silc.c Mon Jun 04 02:22:50 2007 +0000 @@ -362,7 +362,7 @@ /* Schedule SILC using Glib's event loop */ #ifndef _WIN32 - sg->scheduler = g_timeout_add(5, (GSourceFunc)silcpurple_scheduler, sg); + sg->scheduler = g_timeout_add(50, (GSourceFunc)silcpurple_scheduler, sg); #else sg->scheduler = g_timeout_add(300, (GSourceFunc)silcpurple_scheduler, sg); #endif