Fix rounding

This commit is contained in:
Albert Vaca 2017-08-01 23:18:15 +02:00
parent 2b17d89fc1
commit 88e43ada1e

View file

@ -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<void (QNetworkReply::*)(QNetworkReply::NetworkError)>(&QNetworkReply::error),