mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
(cli) #1223 ratio display in CLI client malformed
This commit is contained in:
parent
d39005b0d1
commit
64dad38800
1 changed files with 3 additions and 3 deletions
|
@ -73,11 +73,11 @@ tr_strlratio( char * buf, double ratio, size_t buflen )
|
|||
else if( (int)ratio == TR_RATIO_INF )
|
||||
tr_strlcpy( buf, "Inf", buflen );
|
||||
else if( ratio < 10.0 )
|
||||
tr_snprintf( buf, buflen, "%'.2f", ratio );
|
||||
tr_snprintf( buf, buflen, "%.2f", ratio );
|
||||
else if( ratio < 100.0 )
|
||||
tr_snprintf( buf, buflen, "%'.1f", ratio );
|
||||
tr_snprintf( buf, buflen, "%.1f", ratio );
|
||||
else
|
||||
tr_snprintf( buf, buflen, "%'.0f", ratio );
|
||||
tr_snprintf( buf, buflen, "%.0f", ratio );
|
||||
return buf;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue