From fdcba2a7fa78c532ce80733eb0e0c7a48e4f7504 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 30 Jan 2013 00:16:20 +0000 Subject: [PATCH] only show ratios to one decimal place --- libtransmission/utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libtransmission/utils.c b/libtransmission/utils.c index 8eb8178e4..43c61fbda 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -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); -- 2.40.0