Changeset 3216 for trunk/macosx/Torrent.m
- Timestamp:
- Sep 28, 2007, 1:42:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r3212 r3216 955 955 string = [NSString stringWithFormat: NSLocalizedString(@"Downloading from %d of 1 peer", 956 956 "Torrent -> status string"), [self peersSendingToUs]]; 957 958 string = [string stringByAppendingFormat: @" - DL: %@, UL: %@", 959 [NSString stringForSpeed: [self downloadRate]], [NSString stringForSpeed: [self uploadRate]]]; 957 960 break; 958 961 … … 965 968 string = [NSString stringWithFormat: NSLocalizedString(@"Seeding to %d of 1 peer", "Torrent -> status string"), 966 969 [self peersGettingFromUs]]; 970 971 972 string = [string stringByAppendingFormat: @" - UL: %@", [NSString stringForSpeed: [self uploadRate]]]; 967 973 break; 968 974 … … 977 983 if (fStalled) 978 984 string = [NSLocalizedString(@"Stalled, ", "Torrent -> status string") stringByAppendingString: string]; 979 }980 981 if ([self isActive] && ![self isChecking])982 {983 NSString * stringToAppend;984 if (![self allDownloaded])985 stringToAppend = [NSString stringWithFormat: NSLocalizedString(@"DL: %@, ", "Torrent -> status string"),986 [NSString stringForSpeed: [self downloadRate]]];987 else988 stringToAppend = @"";989 990 string = [string stringByAppendingFormat: @" - %@UL: %@", stringToAppend, [NSString stringForSpeed: [self uploadRate]]];991 985 } 992 986
Note: See TracChangeset
for help on using the changeset viewer.