From 576a0436f9959ebb6ad144d8034e14c8739139d5 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 21 Aug 2011 16:00:28 +0000 Subject: [PATCH] update each torrent's stats in the same loop as where we pull the transfer rates (now that the update method doesn't have any other effects) --- macosx/Controller.m | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 63162ed5c..f4fb19aec 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -919,6 +919,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [fTorrents addObject: torrent]; [torrent release]; + #warning set to bottom of queue + [self fullUpdateUI]; } else @@ -988,6 +990,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [fTorrents addObject: torrent]; [torrent release]; + #warning set to bottom of queue + [self fullUpdateUI]; } else @@ -1665,13 +1669,13 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy - (void) updateUI { - [fTorrents makeObjectsPerformSelector: @selector(update)]; - - //pull the upload and download speeds - most consistent by using current stats CGFloat dlRate = 0.0, ulRate = 0.0; BOOL completed = NO; for (Torrent * torrent in fTorrents) { + [torrent update]; + + //pull the upload and download speeds - most consistent by using current stats dlRate += [torrent downloadRate]; ulRate += [torrent uploadRate];