[Pkg-owncloud-commits] [owncloud-client] 351/498: Fix the Utility Test

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 944564258c4c4ed97ffddbe000c2b8dcad077e4d
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Fri Jul 17 10:27:03 2015 +0200

    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 3feefcb..3976728 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list