Skip to content

fix: start the progress clock with the test window - #148

Open
BKPepe wants to merge 1 commit into
librespeed:masterfrom
BKPepe:fix/progress-clock
Open

fix: start the progress clock with the test window#148
BKPepe wants to merge 1 commit into
librespeed:masterfrom
BKPepe:fix/progress-clock

Conversation

@BKPepe

@BKPepe BKPepe commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The progress ticker started before the transfer ramp-up while the duration timeout started after it, so progress ran ahead of the test by the ramp-up time — with the default three streams it reached 100 six tenths of a second before the phase ended.

Measured against a live server with --duration 5 --concurrent 3:

download phase progress: 100 arrived
before 5.6 s 0.6 s before the phase ended
after 5.6 s at the end of the phase

Introduced by #145 and found while porting --json-stream to the Rust client, where the same flaw was carried over and fixed.

The progress ticker started before the transfer ramp-up while the
duration timeout started after it, so the reported percentage ran ahead
of the test by the ramp-up time: with the default three streams,
progress reached 100 six tenths of a second before the phase ended.

Start the ticker where the timeout starts, so seconds and progress
describe the window they are measured against. Found while porting
--json-stream to the Rust client, where the same flaw was carried over.
Copilot AI lite review requested due to automatic review settings August 18, 2026 07:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants