Changeset 7074 for trunk/macosx/Badger.m


Ignore:
Timestamp:
Nov 8, 2008, 6:09:25 PM (12 years ago)
Author:
livings124
Message:

fix badger on 10.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r7071 r7074  
    152152        NSString * downloadRateString = nil, * uploadRateString = nil;
    153153       
    154         float downloadRate = tr_sessionGetPieceSpeed(fLib, TR_DOWN),
    155                 uploadRate = tr_sessionGetPieceSpeed(fLib, TR_UP);
     154        float downloadRate = checkDownload ? tr_sessionGetPieceSpeed(fLib, TR_DOWN) : 0.0f;
     155        float uploadRate = checkUpload ? tr_sessionGetPieceSpeed(fLib, TR_UP) : 0.0f;
    156156       
    157157        if (checkDownload && downloadRate >= 0.1)
Note: See TracChangeset for help on using the changeset viewer.