changeset 17472:ae7a4134e499

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
author Mark Doliner <mark@kingant.net>
date Mon, 04 Jun 2007 02:22:50 +0000
parents 3175a063aae1
children 8ff4b838790a
files libpurple/protocols/silc/silc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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