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:
parent
cea39bd4d4
commit
f1e85f5206
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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" );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue