aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-10-03 18:08:13 +0000
committerWeblate <noreply@weblate.org>2016-10-03 18:08:13 +0000
commit5601c621c2aa70e6f748cbe73fccbcc81de6792b (patch)
treef549ee5c4266ad553bd250a1fc45340d92c801db /src-qt5/core
parentTranslated using Weblate (l_TERMINAL@ja (generated)) (diff)
parentFix the bytes to display function in the case where the number of bytes *exac... (diff)
downloadlumina-5601c621c2aa70e6f748cbe73fccbcc81de6792b.tar.gz
lumina-5601c621c2aa70e6f748cbe73fccbcc81de6792b.tar.bz2
lumina-5601c621c2aa70e6f748cbe73fccbcc81de6792b.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/core')
-rw-r--r--src-qt5/core/libLumina/LuminaUtils.cpp3
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]);
}
bgstack15