Ignore:
Timestamp:
Oct 13, 2006, 6:58:12 PM (15 years ago)
Author:
livings124
Message:

in info show the number of incoming connections next to total connections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r988 r1006  
    273273        BOOL active = [torrent isActive];
    274274       
    275         [fConnectedPeersField setStringValue: active ? [NSString stringWithInt: [torrent totalPeers]] : @""];
     275        [fConnectedPeersField setStringValue: active ? [NSString stringWithFormat: @"%d (%d incoming)",
     276                                                        [torrent totalPeers], [torrent totalPeersIncoming]]: @""];
    276277        [fDownloadingFromField setStringValue: active ? [NSString stringWithInt: [torrent peersUploading]] : @""];
    277278        [fUploadingToField setStringValue: active ? [NSString stringWithInt: [torrent peersDownloading]] : @""];
Note: See TracChangeset for help on using the changeset viewer.