only show ratios to one decimal place
This commit is contained in:
parent
a17d4d5e3f
commit
fdcba2a7fa
|
@ -1377,9 +1377,7 @@ tr_strtruncd (char * buf, double x, int precision, size_t buflen)
|
|||
char*
|
||||
tr_strpercent (char * buf, double x, size_t buflen)
|
||||
{
|
||||
if (x < 10.0)
|
||||
tr_strtruncd (buf, x, 2, buflen);
|
||||
else if (x < 100.0)
|
||||
if (x < 100.0)
|
||||
tr_strtruncd (buf, x, 1, buflen);
|
||||
else
|
||||
tr_strtruncd (buf, x, 0, buflen);
|
||||
|
|
Loading…
Reference in New Issue