Fix rounding
This commit is contained in:
parent
2b17d89fc1
commit
88e43ada1e
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue