Ignore:
Timestamp:
Jan 23, 2011, 6:23:52 PM (11 years ago)
Author:
livings124
Message:

#3940 Global displayed speed does not include webseeds; remove a now-unused libT speed function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11688 r11756  
    17181718    [fTorrents makeObjectsPerformSelector: @selector(update)];
    17191719   
     1720    //pull the upload and download speeds - most consistent by using current stats
     1721    CGFloat dlRate = 0.0, ulRate = 0.0;
     1722    for (Torrent * torrent in fTorrents)
     1723    {
     1724        dlRate += [torrent downloadRate];
     1725        ulRate += [torrent uploadRate];
     1726    }
     1727   
    17201728    if (![NSApp isHidden])
    17211729    {
     
    17281736            {
    17291737                //set rates
    1730                 [fTotalDLField setStringValue: [NSString stringForSpeed: tr_sessionGetPieceSpeed_KBps(fLib, TR_DOWN)]];
    1731                 [fTotalULField setStringValue: [NSString stringForSpeed: tr_sessionGetPieceSpeed_KBps(fLib, TR_UP)]];
     1738                [fTotalDLField setStringValue: [NSString stringForSpeed: dlRate]];
     1739                [fTotalULField setStringValue: [NSString stringForSpeed: ulRate]];
    17321740               
    17331741                //set status button text
     
    17711779   
    17721780    //badge dock
    1773     [fBadger updateBadge];
     1781    [fBadger updateBadgeWithDownload: dlRate upload: ulRate];
    17741782}
    17751783
Note: See TracChangeset for help on using the changeset viewer.