1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

Increase the intervals on timers that won't affect performance. This reduces most of Transmission's PowerTOP footprint.

This commit is contained in:
Charles Kerr 2007-11-11 20:27:13 +00:00
parent cea39bd4d4
commit f1e85f5206
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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" );
}