]> granicus.if.org Git - transmission/commitdiff
only show ratios to one decimal place
authorJordan Lee <jordan@transmissionbt.com>
Wed, 30 Jan 2013 00:16:20 +0000 (00:16 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 30 Jan 2013 00:16:20 +0000 (00:16 +0000)
libtransmission/utils.c

index 8eb8178e4945564bcde1a6f7402df65369fca00e..43c61fbdaca69fb88998c3d0ef2c0fa18ee9c181 100644 (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);