Skip to content

ADFA-5160: warm up the clone-receive ETA before showing it - #421

Merged
luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-5160-clone-eta-warmup
Aug 15, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
fix/ADFA-5160-clone-eta-warmup

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

Follow-up to the clone progress fix. rsync's first progress samples report a tiny instantaneous speed, so an ETA derived from them read as thousands of hours (e.g. 1665:33:45) for the opening seconds. Hold the ETA for a ~3s warmup (showing "…"), then compute it from the AVERAGE speed (bytes moved / elapsed) rather than the instantaneous figure — steadier, and it smooths the mid-transfer jitter too. The bar and speed keep moving during the warmup.

parseSpeedBytesPerSec is no longer used (the ETA no longer parses rsync's speed string), so it and its test are removed.

Follow-up to the clone progress fix. rsync's first progress samples report a
tiny instantaneous speed, so an ETA derived from them read as thousands of
hours (e.g. 1665:33:45) for the opening seconds. Hold the ETA for a ~3s warmup
(showing "…"), then compute it from the AVERAGE speed (bytes moved / elapsed)
rather than the instantaneous figure — steadier, and it smooths the
mid-transfer jitter too. The bar and speed keep moving during the warmup.

parseSpeedBytesPerSec is no longer used (the ETA no longer parses rsync's
speed string), so it and its test are removed.
@luisguzman-adfa
luisguzman-adfa merged commit 1296cc6 into main Aug 15, 2026
3 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the fix/ADFA-5160-clone-eta-warmup branch August 15, 2026 22:46
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.

1 participant