Changeset 536


Ignore:
Timestamp:
Jul 6, 2006, 12:19:38 AM (16 years ago)
Author:
livings124
Message:

In minimal view show ratio when seeding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r535 r536  
    236236        NSString * stringToAppend = @"";
    237237        if ([self progress] < 1.0)
     238        {
    238239            stringToAppend = [NSString stringWithFormat: @"DL: %@, ", [NSString stringForSpeed: [self downloadRate]]];
     240            [fShortStatusString setString: @""];
     241        }
     242        else
     243            [fShortStatusString setString: [NSString stringWithFormat: @"ratio: %@, ",
     244                [NSString stringForRatioWithDownload: [self downloadedTotal] upload: [self uploadedTotal]]]];
     245       
    239246        stringToAppend = [stringToAppend stringByAppendingString: [@"UL: " stringByAppendingString:
    240247                                                [NSString stringForSpeed: [self uploadRate]]]];
    241248
    242249        [fStatusString appendFormat: @" - %@", stringToAppend];
    243         [fShortStatusString setString: stringToAppend];
     250        [fShortStatusString appendString: stringToAppend];
    244251    }
    245252}
Note: See TracChangeset for help on using the changeset viewer.