[Qbittorrent-devel] GASA ETA calculation algorithm
A free and reliable P2P BitTorrent client
Brought to you by:
sledgehammer999
From: Chris <dc...@gm...> - 2007-11-24 22:55:58
|
Hi, I have just rewrote from scratch the ETA calculation, using a new algorithm. The old one used a lot of memory/cpu, experienced overflows, sometimes displayed "< 1min" instead of "Unknown" for no reason. The new algorithm is GASA (Global Average Speed Algorithm). It fairly precise and really simple. We shouldn't have to worry about overflows anymore. The tricky part was to compute global average speed (in the previous algorithm, we used an average of speed samples taken regularly in the last 10 minutes). Now it does use the average speed over le whole session (less the time spent in paused state). The ETA is more precise and more stable that previously. I also think it is a lot cleaner and less buggy. I commited to trunk and v1.0.0 branch (will be in rc10 if there is one or final) too. Please tell me if you notice any weird behavior with the new ETA calculation algorithm. Best regards, Chris. |