diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-07-18 12:01:50 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-07-18 12:01:50 +0200 |
| commit | d5f3bee642f6ab25f10d0ba34d6f85d4876fcf2d (patch) | |
| tree | 2ead7ecd7283a29f0c5feee5f1aafa3a2b1c052b /src | |
| parent | b38957d853c2c3a62d243654d78597b52de38287 (diff) | |
Changed unit check.
Diffstat (limited to 'src')
| -rw-r--r-- | src/downloadmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 67c43d4b..33899f46 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -1321,7 +1321,7 @@ void DownloadManager::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) if (speed < 1000) {
unit = "Bytes/s";
}
- else if (speed/1024 < 1000) {
+ else if (speed < 1000*1024) {
speed /= 1024;
unit = "KB/s";
}
|
