summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-12-25 14:46:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2012-12-25 14:46:46 +0100
commit57d510b5f9089fa8e3e8f1c9023f75bc4165b307 (patch)
tree44249bfbb469cd950c8338d246844467b478755d
parentFix time display. (diff)
downloadoldgen-zmusicuploader-57d510b5f9089fa8e3e8f1c9023f75bc4165b307.tar.xz
oldgen-zmusicuploader-57d510b5f9089fa8e3e8f1c9023f75bc4165b307.zip
Show total megabytes.
-rw-r--r--Uploader.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Uploader.cpp b/Uploader.cpp
index 271d026..aa1f766 100644
--- a/Uploader.cpp
+++ b/Uploader.cpp
@@ -147,9 +147,13 @@ void Uploader::dataTransferProgress(qint64 done, qint64 total)
<< static_cast<qint64>(round(done / 1024.0))
<< "/"
<< static_cast<qint64>(round(total / 1024.0))
- << " kB | "
+ << " KB | "
+ << static_cast<qint64>(round((m_totalBytes - m_totalBytesLeft + done) / 1024.0 / 1024.0))
+ << "/"
+ << static_cast<qint64>(round(m_totalBytes / 1024.0 / 1024.0))
+ << " MB | "
<< static_cast<qint64>(round(rate * 1024.0 / 1000.0))
- << " kB/s | File ETA: "
+ << " KB/s | File ETA: "
<< formatTime(time).toStdString()
<< " | Total ETA: "
<< formatTime(totalTime).toStdString();