Changeset 11409


Ignore:
Timestamp:
Nov 14, 2010, 3:16:39 PM (11 years ago)
Author:
livings124
Message:

a couple of float -> double changes

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoPeersViewController.m

    r10832 r11409  
    274274        {
    275275            NSNumber * rate;
    276             return (rate = [webSeed objectForKey: @"DL From Rate"]) ? [NSString stringForSpeedAbbrev: [rate floatValue]] : @"";
     276            return (rate = [webSeed objectForKey: @"DL From Rate"]) ? [NSString stringForSpeedAbbrev: [rate doubleValue]] : @"";
    277277        }
    278278        else
     
    293293        {
    294294            NSNumber * rate;
    295             return (rate = [peer objectForKey: @"UL To Rate"]) ? [NSString stringForSpeedAbbrev: [rate floatValue]] : @"";
     295            return (rate = [peer objectForKey: @"UL To Rate"]) ? [NSString stringForSpeedAbbrev: [rate doubleValue]] : @"";
    296296        }
    297297        else if ([ident isEqualToString: @"DL From"])
    298298        {
    299299            NSNumber * rate;
    300             return (rate = [peer objectForKey: @"DL From Rate"]) ? [NSString stringForSpeedAbbrev: [rate floatValue]] : @"";
     300            return (rate = [peer objectForKey: @"DL From Rate"]) ? [NSString stringForSpeedAbbrev: [rate doubleValue]] : @"";
    301301        }
    302302        else
  • trunk/macosx/Torrent.m

    r11395 r11409  
    949949       
    950950        if (dlSpeeds[i] != -1.0)
    951             [dict setObject: [NSNumber numberWithFloat: dlSpeeds[i]] forKey: @"DL From Rate"];
     951            [dict setObject: [NSNumber numberWithDouble: dlSpeeds[i]] forKey: @"DL From Rate"];
    952952       
    953953        [webSeeds addObject: dict];
  • trunk/macosx/TorrentTableView.m

    r10407 r11409  
    641641        if ([menu numberOfItems] == 4)
    642642        {
    643             const CGFloat ratioLimitActionValue[] = { 0.25, 0.5, 0.75, 1.0, 1.5, 2.0, 3.0, -1.0 };
     643            const float ratioLimitActionValue[] = { 0.25, 0.5, 0.75, 1.0, 1.5, 2.0, 3.0, -1.0 };
    644644           
    645645            for (NSInteger i = 0; ratioLimitActionValue[i] != -1.0; i++)
     
    850850    NSMutableArray * progressMarks = [NSMutableArray arrayWithCapacity: 16];
    851851    for (NSAnimationProgress i = 0.0625; i <= 1.0; i += 0.0625)
    852         [progressMarks addObject: [NSNumber numberWithFloat: i]];
     852        [progressMarks addObject: [NSNumber numberWithDouble: i]];
    853853   
    854854    fPiecesBarAnimation = [[NSAnimation alloc] initWithDuration: TOGGLE_PROGRESS_SECONDS animationCurve: NSAnimationEaseIn];
Note: See TracChangeset for help on using the changeset viewer.