问题描述
是否有当下载(或任何其他程序)将完成基于百分比进行历史predicting任何部件?
Are there any widgets for predicting when a download (or any other process) will finish based on percent done history?
在平凡的版本将只是做基础上,开始时间2点拟合,当前时间和百分比完成,但更好的选择是可能的。
The trivial version would just do a 2 point fit based on the start time, current time and percent done but better option are possible.
这只是返回值的GUI widgest将是很好,但一类会就好了。
A GUI widgest would be nice but a class that just returns the value would be just fine.
推荐答案
有关,我会尝试,如果我会写这样的小部件,会是这样的理论算法:
For the theoretical algorithm that I would attempt, if I would write such a widget, would be something like:
- 记录一第二周期内传输的数据量(字面 KIB / s)的
- 记住最后5个或10个这样的周期(以获得的最近的平均昆明植物研究所/秒)
- 从传输大小减去总规模(以获得字节剩余)
- ???
- 小工具!
- Record the amount of data transferred within a one second period (a literal KiB/s)
- Remember the last 5 or 10 such periods (to get an an recent average KiB/s)
- Subtract the total size from the transferred size (to get a "bytes remaining")
- ???
- Widget!
这是现在应该做的......
That oughta do it...
(缺少的步骤中:kibibytes剩余除以平均昆明植物研究所/秒)
(the missing step being: kibibytes remaining divided by average KiB/s)
这篇关于下载时间remaning predictor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!