From 88e43ada1e344ac0ddf2159e400a94a848b28a2a Mon Sep 17 00:00:00 2001 From: Albert Vaca Date: Tue, 1 Aug 2017 23:18:15 +0200 Subject: [PATCH] Fix rounding --- core/filetransferjob.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/filetransferjob.cpp b/core/filetransferjob.cpp index 0ace8655a..188e1ceab 100644 --- a/core/filetransferjob.cpp +++ b/core/filetransferjob.cpp @@ -95,7 +95,7 @@ void FileTransferJob::startTransfer() const auto elapsed = mTimer.elapsed(); if (elapsed > 0) { - emitSpeed(1000 * (bytesSent / elapsed)); + emitSpeed((1000 * bytesSent) / elapsed); } }); connect(mReply, static_cast(&QNetworkReply::error),