Ignore:
Timestamp:
Dec 18, 2006, 6:25:40 AM (16 years ago)
Author:
livings124
Message:

display actual upload/download rate in inspector for individual peers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r1250 r1256  
    6868        fDotGreen = [NSImage imageNamed: @"GreenDot.tiff"];
    6969        fDotRed = [NSImage imageNamed: @"RedDot.tiff"];
    70         fCheckImage = [NSImage imageNamed: @"NSMenuCheckmark"];   
    7170    }
    7271    return self;
     
    541540            return [peer objectForKey: @"Progress"];
    542541        else if ([ident isEqualToString: @"UL To"])
    543             return [[peer objectForKey: @"UL To"] boolValue] ? fCheckImage : nil;
     542            return [[peer objectForKey: @"UL To"] boolValue]
     543                    ? [NSString stringForSpeedAbbrev: [[peer objectForKey: @"UL To Rate"] floatValue]] : @"";
    544544        else if ([ident isEqualToString: @"DL From"])
    545             return [[peer objectForKey: @"DL From"] boolValue] ? fCheckImage : nil;
     545            return [[peer objectForKey: @"DL From"] boolValue]
     546                    ? [NSString stringForSpeedAbbrev: [[peer objectForKey: @"DL From Rate"] floatValue]] : @"";
    546547        else
    547548            return [peer objectForKey: @"IP"];
Note: See TracChangeset for help on using the changeset viewer.