Changeset 10949


Ignore:
Timestamp:
Jul 6, 2010, 3:40:34 AM (12 years ago)
Author:
livings124
Message:

replace some floats with doubles

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.m

    r10948 r10949  
    5656- (void) updateBadge
    5757{
    58     const float downloadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"]
     58    const double downloadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeDownloadRate"]
    5959                                ? tr_sessionGetPieceSpeed_KBps(fLib, TR_DOWN) : 0.0;
    60     const float uploadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeUploadRate"]
     60    const double uploadRate = [[NSUserDefaults standardUserDefaults] boolForKey: @"BadgeUploadRate"]
    6161                                ? tr_sessionGetPieceSpeed_KBps(fLib, TR_UP) : 0.0;
    6262   
  • trunk/macosx/Torrent.m

    r10948 r10949  
    884884       
    885885        if (peer->isUploadingTo)
    886             [dict setObject: [NSNumber numberWithFloat: peer->rateToPeer_KBps] forKey: @"UL To Rate"];
     886            [dict setObject: [NSNumber numberWithDouble: peer->rateToPeer_KBps] forKey: @"UL To Rate"];
    887887        if (peer->isDownloadingFrom)
    888             [dict setObject: [NSNumber numberWithFloat: peer->rateToClient_KBps] forKey: @"DL From Rate"];
     888            [dict setObject: [NSNumber numberWithDouble: peer->rateToClient_KBps] forKey: @"DL From Rate"];
    889889       
    890890        [peerDicts addObject: dict];
Note: See TracChangeset for help on using the changeset viewer.