1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

fix ratio display error reported by pea_

This commit is contained in:
Mitchell Livingston 2008-04-07 03:43:20 +00:00
parent 2a8b6f8b1f
commit d40eaf6d97

View file

@ -103,7 +103,7 @@
else if (ratio <= 99.95) //10.0 to 99.9
return [NSString localizedStringWithFormat: @"%.1f", ratio];
else //rest are single digit
return [NSString stringWithFormat: @"%d", ratio];
return [NSString stringWithFormat: @"%.0f", ratio];
}
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds