Log In     Register    

Help and Support
Ask a question, report a problem, request a feature...
<<  Back To Forum

Feature Suggestion: Implementing a Short-Window Moving Average f

by Guest on 2026/04/10 06:28:36 PM    
Objective: To improve the responsiveness and accuracy of the "Time Left" (ETA) display when available bandwidth fluctuates (e.g., when one download in a queue completes).

The Problem

Currently, the ETA calculation appears to use a long-term average of the download speed. When a competing download finishes and the remaining download’s speed spikes, the ETA "drifts" down slowly rather than snapping to the new reality. This creates a disconnect between the displayed speed and the projected completion time.

Proposed Solution

Transition the ETA calculation from a global average to a Short-Term Moving Average (SMA) or a Weighted Moving Average.

   Window Duration: Calculate the ETA based on the average download speed of the last 10–15 seconds.

   Logic:    ETA = Remaining Bytes \ Average Speed over last n seconds

Benefits to the User

   Instant Feedback: The UI will immediately reflect the "boost" in speed when other tasks finish.

   Accuracy: Provides a realistic "live" estimate that accounts for the volatile nature of P2P connections.

   UI Polish: Eliminates the "incremental crawl" where the timer counts down slower than actual seconds.
by Wiztor on 2026/04/11 01:36:49 AM    
To quote Bram Cohen 2005: "It turns out that estimating time left to complete a download is non-trivial."
https://bramcohen.livejournal.com/24122.html

https://www.mccaughan.org.uk/g/remarks/time-left.html




This web site is powered by Super Simple Server