From f1e85f520634a1cd361cf588f68ba1c3391308e4 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 11 Nov 2007 20:27:13 +0000 Subject: [PATCH] Increase the intervals on timers that won't affect performance. This reduces most of Transmission's PowerTOP footprint. --- libtransmission/shared.c | 2 +- libtransmission/trevent.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/shared.c b/libtransmission/shared.c index 80c6b9151..a91e82a4a 100644 --- a/libtransmission/shared.c +++ b/libtransmission/shared.c @@ -79,7 +79,7 @@ tr_shared * tr_sharedInit( tr_handle * h ) s->bindSocket = -1; s->natpmp = tr_natpmpInit(); s->upnp = tr_upnpInit(); - s->pulseTimer = tr_timerNew( h, SharedLoop, s, 250 ); + s->pulseTimer = tr_timerNew( h, SharedLoop, s, 500 ); return s; } diff --git a/libtransmission/trevent.c b/libtransmission/trevent.c index 2ecdaa38e..89c20fc3d 100644 --- a/libtransmission/trevent.c +++ b/libtransmission/trevent.c @@ -228,7 +228,7 @@ tr_eventInit( tr_handle * handle ) eh = tr_new0( tr_event_handle, 1 ); eh->lock = tr_lockNew( ); eh->h = handle; - eh->pulseInterval = timevalMsec( 20 ); + eh->pulseInterval = timevalMsec( 100 ); eh->thread = tr_threadNew( libeventThreadFunc, eh, "libeventThreadFunc" ); }