Changeset 9198


Ignore:
Timestamp:
Sep 28, 2009, 2:27:38 AM (13 years ago)
Author:
livings124
Message:

add lastAnnouncePeerCount to tracker info tab

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TrackerNode.m

    r9197 r9198  
    5050}
    5151
    52 #warning work in peer count?
    5352#warning consider "isActive"
    5453- (NSString *) lastAnnounceStatusString
     
    7877                        [NSString stringWithUTF8String: fStat.lastAnnounceResult], dateString];
    7978    else
    80         dateString = [NSString stringWithFormat: NSLocalizedString(@"Last Announce: %@", "Tracker last announce"), dateString];
     79    {
     80        dateString = [NSString stringWithFormat: NSLocalizedString(@"Last Announce: %@", "Tracker last announce"),
     81                        dateString];
     82        if (fStat.hasAnnounced && fStat.lastAnnounceSucceeded)
     83            dateString = [dateString stringByAppendingFormat: NSLocalizedString(@" (got %d peers)", "Tracker last announce"),
     84                            fStat.lastAnnouncePeerCount];
     85    }
    8186   
    8287    return dateString;
Note: See TracChangeset for help on using the changeset viewer.