Fix the Utility Test

1 should be printed as "1" and not as "1.00"
This commit is contained in:
Olivier Goffart 2015-07-17 10:27:03 +02:00
parent 0a6aa88d72
commit 944564258c

View file

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