Changeset 790


Ignore:
Timestamp:
Aug 17, 2006, 3:24:40 AM (15 years ago)
Author:
livings124
Message:

percentage next to valid downloaded in inspector

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r789 r790  
    4040                        * fHashField,
    4141                        * fTorrentLocationField, * fDataLocationField,
    42                         * fDateStartedField,
    43                         //* fPercentField,
    44                         * fStateField,
     42                        * fDateStartedField, * fStateField,
    4543                        * fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
    4644                        * fRatioField, * fSeedersField, * fLeechersField,
  • trunk/macosx/InfoWindowController.m

    r789 r790  
    157157       
    158158        [fStateField setStringValue: @""];
    159 /*
    160         [fPercentField setStringValue: @""];
    161 */
    162159        [fRatioField setStringValue: @""];
    163160       
     
    249246    {
    250247        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       
    252253        [fStateField setStringValue: [torrent stateString]];
    253 /*
    254         [fPercentField setStringValue: [NSString stringWithFormat: @"%.2f%%", 100.0 * [torrent progress]]];
    255 */
     254       
    256255        int seeders = [torrent seeders], leechers = [torrent leechers];
    257256        [fSeedersField setStringValue: seeders < 0 ? @"" : [NSString stringWithInt: seeders]];
Note: See TracChangeset for help on using the changeset viewer.