Changeset 2370


Ignore:
Timestamp:
Jul 16, 2007, 1:05:03 AM (15 years ago)
Author:
livings124
Message:

get compiling

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r2363 r2370  
    433433        [fConnectedPeersField setStringValue: NSLocalizedString(@"info not available", "Inspector -> Peers tab -> peers")];
    434434   
    435     [fDownloadingFromField setStringValue: active ? [NSString stringWithInt: [torrent peersUploading]] : @""];
    436     [fUploadingToField setStringValue: active ? [NSString stringWithInt: [torrent peersDownloading]] : @""];
     435    [fDownloadingFromField setStringValue: active ? [NSString stringWithInt: [torrent peersSendingToUs]] : @""];
     436    [fUploadingToField setStringValue: active ? [NSString stringWithInt: [torrent peersGettingFromUs]] : @""];
    437437   
    438438    if (fPeers)
  • trunk/macosx/Torrent.h

    r2366 r2370  
    185185- (int) totalPeersPex;
    186186
    187 - (int) peersUploading;
    188 - (int) peersDownloading;
     187- (int) peersSendingToUs;
     188- (int) peersGettingFromUs;
    189189
    190190- (float) downloadRate;
  • trunk/macosx/Torrent.m

    r2367 r2370  
    385385            if ([self totalPeersConnected] != 1)
    386386                [statusString appendFormat: NSLocalizedString(@"Downloading from %d of %d peers",
    387                                                 "Torrent -> status string"), [self peersUploading], [self totalPeersConnected]];
     387                                                "Torrent -> status string"), [self peersSendingToUs], [self totalPeersConnected]];
    388388            else
    389389                [statusString appendFormat: NSLocalizedString(@"Downloading from %d of 1 peer",
    390                                                 "Torrent -> status string"), [self peersUploading]];
     390                                                "Torrent -> status string"), [self peersSendingToUs]];
    391391           
    392392            int eta = [self eta];
     
    428428            if ([self totalPeersConnected] != 1)
    429429                [statusString appendFormat: NSLocalizedString(@"Seeding to %d of %d peers", "Torrent -> status string"),
    430                                                 [self peersDownloading], [self totalPeersConnected]];
     430                                                [self peersSendingToUs], [self totalPeersConnected]];
    431431            else
    432432                [statusString appendFormat: NSLocalizedString(@"Seeding to %d of 1 peer", "Torrent -> status string"),
    433                                                 [self peersDownloading]];
     433                                                [self peersGettingFromUs]];
    434434           
    435435            break;
     
    12101210
    12111211//peers uploading to you
    1212 - (int) peersUploading
    1213 {
    1214     return fStat->peersUploading;
     1212- (int) peersSendingToUs
     1213{
     1214    return fStat->peersSendingToUs;
    12151215}
    12161216
    12171217//peers downloading from you
    1218 - (int) peersDownloading
    1219 {
    1220     return fStat->peersDownloading;
     1218- (int) peersGettingFromUs
     1219{
     1220    return fStat->peersGettingFromUs;
    12211221}
    12221222
Note: See TracChangeset for help on using the changeset viewer.