Changeset 569


Ignore:
Timestamp:
Jul 13, 2006, 3:34:20 AM (16 years ago)
Author:
livings124
Message:

I can't imagine putting the upload/download rates back into the inspector.

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.h

    r535 r569  
    4040                        * fTorrentLocationField, * fDataLocationField,
    4141                        * fDateStartedField,
    42 /*
    43                         * fPercentField,
    44                         * fDownloadRateField, * fUploadRateField,
    45 */
     42                        //* fPercentField,
    4643                        * fStateField,
    4744                        * fDownloadedValidField, * fDownloadedTotalField, * fUploadedTotalField,
  • trunk/macosx/InfoWindowController.m

    r535 r569  
    108108            [fNameField setStringValue: @"No Torrents Selected"];
    109109            [fSizeField setStringValue: @""];
    110            
    111 /*
    112             [fDownloadRateField setStringValue: @""];
    113             [fUploadRateField setStringValue: @""];
    114 */
     110
    115111            [fDownloadedValidField setStringValue: @""];
    116112            [fDownloadedTotalField setStringValue: @""];
     
    199195    if (numberSelected > 0)
    200196    {
    201         //float downloadRate = 0, uploadRate = 0;
    202197        float downloadedValid = 0;
    203198        uint64_t downloadedTotal = 0, uploadedTotal = 0;
     
    206201        while ((torrent = [enumerator nextObject]))
    207202        {
    208             /*downloadRate += [torrent downloadRate];
    209             uploadRate += [torrent uploadRate];
    210             */
    211203            downloadedValid += [torrent downloadedValid];
    212204            downloadedTotal += [torrent downloadedTotal];
    213205            uploadedTotal += [torrent uploadedTotal];
    214206        }
    215 /*
    216         [fDownloadRateField setStringValue: [NSString stringForSpeed: downloadRate]];
    217         [fUploadRateField setStringValue: [NSString stringForSpeed: uploadRate]];
    218 */
     207
    219208        [fDownloadedValidField setStringValue: [NSString stringForFileSize: downloadedValid]];
    220209        [fDownloadedTotalField setStringValue: [NSString stringForFileSize: downloadedTotal]];
Note: See TracChangeset for help on using the changeset viewer.