Ignore:
Timestamp:
Jul 21, 2010, 3:59:08 AM (12 years ago)
Author:
livings124
Message:

(2.0x) fix backport error from r10981 that caused errors when adding torrents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/macosx/FileNameCell.m

    r10981 r11028  
    212212   
    213213    const CGFloat progress = [torrent fileProgress: node];
    214     NSString * percentString = [NSString percentString: progress longDecimals: YES];
     214    NSString * percentString = progress == 1.0 ? @"100%"
     215                                : [NSString localizedStringWithFormat: @"%.2f%%", tr_truncd(progress * 100.0, 2)];
    215216   
    216217    NSString * status = [NSString stringWithFormat: NSLocalizedString(@"%@ of %@",
Note: See TracChangeset for help on using the changeset viewer.