mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +00:00
fix ratio display error reported by pea_
This commit is contained in:
parent
2a8b6f8b1f
commit
d40eaf6d97
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@
|
||||||
else if (ratio <= 99.95) //10.0 to 99.9
|
else if (ratio <= 99.95) //10.0 to 99.9
|
||||||
return [NSString localizedStringWithFormat: @"%.1f", ratio];
|
return [NSString localizedStringWithFormat: @"%.1f", ratio];
|
||||||
else //rest are single digit
|
else //rest are single digit
|
||||||
return [NSString stringWithFormat: @"%d", ratio];
|
return [NSString stringWithFormat: @"%.0f", ratio];
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds
|
+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds
|
||||||
|
|
Loading…
Reference in a new issue