Skip to content

Fix CompositeFileTransferJob speed calculation

Kai Uwe Broulik requested to merge work/kbroulik/transfer-speed into master

The QElapsedTimer was never started. Clean it up somewhat and use a dedicated 250ms timer for reporting transferred bytes periodically (like KIO does it) and 1000ms for calculating speed so it's not as erratic.

Furthermore, report final numbers in slotResult rather than complicating slotProcessedAmount for that.

Also, fix typo "send" -> "sent"


Screenshot_20210131_225145

Overall seems to work well, transfer speeds seem to match my home network. Might still need some prolonged real-world testing? But then, it's better than the status quo :)

Merge request reports