From 944564258c4c4ed97ffddbe000c2b8dcad077e4d Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 17 Jul 2015 10:27:03 +0200 Subject: [PATCH] Fix the Utility Test 1 should be printed as "1" and not as "1.00" --- src/libsync/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/utility.cpp b/src/libsync/utility.cpp index 3feefcb62..39767280d 100644 --- a/src/libsync/utility.cpp +++ b/src/libsync/utility.cpp @@ -126,7 +126,7 @@ QString Utility::octetsToString( qint64 octets ) s = QCoreApplication::translate("Utility", "%L1 B"); } - return (value > 9.95) ? s.arg(qRound(value)) : s.arg(value, 0, 'f', 2); + return (value > 9.95) ? s.arg(qRound(value)) : s.arg(value, 0, 'g', 2); } // Qtified version of get_platforms() in csync_owncloud.c