- Timestamp:
- Aug 17, 2006, 3:24:40 AM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/InfoWindowController.h
r789 r790 40 40 * fHashField, 41 41 * fTorrentLocationField, * fDataLocationField, 42 * fDateStartedField, 43 //* fPercentField, 44 * fStateField, 42 * fDateStartedField, * fStateField, 45 43 * fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField, 46 44 * fRatioField, * fSeedersField, * fLeechersField, -
trunk/macosx/InfoWindowController.m
r789 r790 157 157 158 158 [fStateField setStringValue: @""]; 159 /*160 [fPercentField setStringValue: @""];161 */162 159 [fRatioField setStringValue: @""]; 163 160 … … 249 246 { 250 247 torrent = [fTorrents objectAtIndex: 0]; 251 248 249 //append percentage to amount downloaded if 1 torrent 250 [fDownloadedValidField setStringValue: [[fDownloadedValidField stringValue] 251 stringByAppendingFormat: @" (%.2f%%)", 100.0 * [torrent progress]]]; 252 252 253 [fStateField setStringValue: [torrent stateString]]; 253 /* 254 [fPercentField setStringValue: [NSString stringWithFormat: @"%.2f%%", 100.0 * [torrent progress]]]; 255 */ 254 256 255 int seeders = [torrent seeders], leechers = [torrent leechers]; 257 256 [fSeedersField setStringValue: seeders < 0 ? @"" : [NSString stringWithInt: seeders]];
Note: See TracChangeset
for help on using the changeset viewer.