only show ratios to one decimal place

This commit is contained in:
Jordan Lee 2013-01-30 00:16:20 +00:00
parent a17d4d5e3f
commit fdcba2a7fa
1 changed files with 1 additions and 3 deletions

View File

@ -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);