Force rates to 0 when paused, and download rate to 0 when seeding.

Increased OS X UI update interval to 1 second.
This commit is contained in:
Eric Petit
2006-02-07 02:32:50 +00:00
parent fa3e10b2c0
commit fcd1c9a1a8
4 changed files with 38 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ static void sleepCallBack( void * controller, io_service_t y,
fSeeding = 0;
fCompleted = 0;
fStat = nil;
fTimer = [NSTimer scheduledTimerWithTimeInterval: 0.5 target: self
fTimer = [NSTimer scheduledTimerWithTimeInterval: 1.0 target: self
selector: @selector( updateUI: ) userInfo: NULL repeats: YES];
[[NSRunLoop currentRunLoop] addTimer: fTimer
forMode: NSModalPanelRunLoopMode];