Ignore:
Timestamp:
Feb 27, 2008, 7:34:55 PM (14 years ago)
Author:
livings124
Message:

show amount selected in open window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r5143 r5149  
    810810{
    811811    return fStat->percentComplete;
    812     //return (float)[self haveTotal] / [self size];
    813812}
    814813
     
    940939        if ([fDefaults boolForKey: @"DisplayStatusProgressSelected"])
    941940        {
    942             uint64_t have = [self haveTotal];
    943941            string = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@ selected (%.2f%%)", "Torrent -> progress string"),
    944                             [NSString stringForFileSize: have], [NSString stringForFileSize: have + [self sizeLeft]],
     942                            [NSString stringForFileSize: [self haveTotal]], [NSString stringForFileSize: [self totalSizeSelected]],
    945943                            100.0 * [self progressDone]];
    946944        }
     
    12211219}
    12221220
     1221- (uint64_t) totalSizeSelected
     1222{
     1223    return [self haveTotal] + [self sizeLeft];
     1224}
     1225
    12231226- (uint64_t) downloadedTotal
    12241227{
     
    13531356   
    13541357    [self update];
     1358    [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentFileCheckChange" object: self];
    13551359}
    13561360
Note: See TracChangeset for help on using the changeset viewer.