Changeset 11650


Ignore:
Timestamp:
Jan 9, 2011, 7:24:27 PM (11 years ago)
Author:
livings124
Message:

if file size is less than 10 KB, show one decimal place

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSStringAdditions.m

    r11649 r11650  
    190190        convertedSize = size / baseFloat;
    191191        unit = NSLocalizedString(@"KB", "File size - kilobytes");
    192         decimals = 0;
     192        decimals = convertedSize >= 10.0 ? 0 : 1;
    193193    }
    194194    else if (size < pow(baseInt, 3))
  • trunk/macosx/Torrent.m

    r11649 r11650  
    12061206       
    12071207        default:
    1208             NSAssert1(NO, @"Unknown activity %d for statis string", fStat->activity);
     1208            NSAssert1(NO, @"Unknown activity %d for state string", fStat->activity);
    12091209            return nil;
    12101210    }
Note: See TracChangeset for help on using the changeset viewer.