Changeset 12710


Ignore:
Timestamp:
Aug 21, 2011, 4:00:28 PM (11 years ago)
Author:
livings124
Message:

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r12664 r12710  
    920920        [torrent release];
    921921       
     922        #warning set to bottom of queue
     923       
    922924        [self fullUpdateUI];
    923925    }
     
    988990        [fTorrents addObject: torrent];
    989991        [torrent release];
     992       
     993        #warning set to bottom of queue
    990994       
    991995        [self fullUpdateUI];
     
    16661670- (void) updateUI
    16671671{
    1668     [fTorrents makeObjectsPerformSelector: @selector(update)];
    1669    
    1670     //pull the upload and download speeds - most consistent by using current stats
    16711672    CGFloat dlRate = 0.0, ulRate = 0.0;
    16721673    BOOL completed = NO;
    16731674    for (Torrent * torrent in fTorrents)
    16741675    {
     1676        [torrent update];
     1677       
     1678        //pull the upload and download speeds - most consistent by using current stats
    16751679        dlRate += [torrent downloadRate];
    16761680        ulRate += [torrent uploadRate];
Note: See TracChangeset for help on using the changeset viewer.