diff options
author | Weblate <noreply@weblate.org> | 2016-10-03 18:21:12 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2016-10-03 18:21:12 +0000 |
commit | d001ef0332aef1c85a464a0c9b86357b2c0d0264 (patch) | |
tree | 2ef7fab73d7693d760dd396d064914ad7f6fb79f /src-qt5/core/libLumina/LuminaUtils.cpp | |
parent | Translated using Weblate (lumina_OPEN@ja (generated)) (diff) | |
parent | Translated using Weblate (l_TE@hu (generated)) (diff) | |
download | lumina-d001ef0332aef1c85a464a0c9b86357b2c0d0264.tar.gz lumina-d001ef0332aef1c85a464a0c9b86357b2c0d0264.tar.bz2 lumina-d001ef0332aef1c85a464a0c9b86357b2c0d0264.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core/libLumina/LuminaUtils.cpp')
-rw-r--r-- | src-qt5/core/libLumina/LuminaUtils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaUtils.cpp b/src-qt5/core/libLumina/LuminaUtils.cpp index 8a35be6b..db165cf2 100644 --- a/src-qt5/core/libLumina/LuminaUtils.cpp +++ b/src-qt5/core/libLumina/LuminaUtils.cpp @@ -410,13 +410,14 @@ QString LUtils::BytesToDisplaySize(qint64 ibytes){ }else if(bytes>=10){ //need 1 decimel place num = QString::number( (qRound(bytes*10)/10.0) ); - }else if(bytes>1){ + }else if(bytes>=1){ //need 2 decimel places num = QString::number( (qRound(bytes*100)/100.0) ); }else{ //Fully decimel (3 places) num = "0."+QString::number(qRound(bytes*1000)); } + //qDebug() << "Bytes to Human-readable:" << bytes << c << num << labs[c]; return (num+labs[c]); } |