Changeset 9202


Ignore:
Timestamp:
Sep 28, 2009, 3:19:11 AM (13 years ago)
Author:
livings124
Message:

distinguish trackers meant as backups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TrackerNode.m

    r9200 r9202  
    5555}
    5656
    57 #warning consider "isActive"
    5857- (NSString *) lastAnnounceStatusString
    5958{
     
    8281                        dateString];
    8382        if (fStat.hasAnnounced && fStat.lastAnnounceSucceeded)
    84             dateString = [dateString stringByAppendingFormat: NSLocalizedString(@" (got %d peers)", "Tracker last announce"),
    85                             fStat.lastAnnouncePeerCount];
     83        {
     84            NSString * peerString = [NSString stringWithFormat: NSLocalizedString(@"got %d peers", "Tracker last announce"),
     85                                        fStat.lastAnnouncePeerCount];
     86            dateString = [dateString stringByAppendingFormat: @" (%@)", peerString];
     87        }
    8688    }
    8789   
     
    8991}
    9092
     93#warning consider "isActive"
    9194- (NSString *) nextAnnounceStatusString
    9295{
     
    9699        return [NSString stringWithFormat: NSLocalizedString(@"Next announce in %@", "Tracker next announce"),
    97100                [NSString timeString: fStat.nextAnnounceTime - [[NSDate date] timeIntervalSince1970] showSeconds: YES]];
     101    else if (fStat.isActive)
     102        return NSLocalizedString(@"Announce not scheduled", "Tracker next announce");
    98103    else
    99         return NSLocalizedString(@"Announce not scheduled", "Tracker next announce");
     104        return NSLocalizedString(@"Tracker will be used as a backup", "Tracker next announce");
    100105}
    101106
Note: See TracChangeset for help on using the changeset viewer.