Changeset 5541


Ignore:
Timestamp:
Apr 6, 2008, 2:47:26 PM (14 years ago)
Author:
livings124
Message:

fix speeds of -0.01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSStringAdditions.m

    r5540 r5541  
    7979{
    8080    if (speed < 1000.0) //0.0 K to 999.9 K
    81         return [NSString localizedStringWithFormat: @"%.1f K", speed - .05];
     81        return [NSString localizedStringWithFormat: @"%.1f K", MAX(0.0, speed - .05)];
    8282    else if (speed < 102400.0) //0.98 M to 99.99 M
    8383        return [NSString localizedStringWithFormat: @"%.2f M", (speed / 1024.0) - .005];
Note: See TracChangeset for help on using the changeset viewer.