Changeset 5541
- Timestamp:
- Apr 6, 2008, 2:47:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/NSStringAdditions.m
r5540 r5541 79 79 { 80 80 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)]; 82 82 else if (speed < 102400.0) //0.98 M to 99.99 M 83 83 return [NSString localizedStringWithFormat: @"%.2f M", (speed / 1024.0) - .005];
Note: See TracChangeset
for help on using the changeset viewer.