What's the best way to calculate remaining download time? -
Assume that you want to calculate the remaining download time, and you have all the necessary information, which is: file size , DL 'size size, shape size, time has passed, speed of momentary DL, etc.' How will the balance DL timing be calculated? Absolutely, the direct path would either be: the shape left / momentary DL speed, or: (time passed / dull size) * size left only that would be the first deviation in transient motion, and later speed Will not be favorable to change.
There should be some clever ways to do this, is not it? Take a look at the pirated software and music you currently download with the Utourant. It is easy to notice that it is more than the simple calculations mentioned earlier. Actually, I notice that sometimes when the speed of DL drops, then the rest stops for a few moments until it is OK.
OK, just as you said, using the current download speed is not a great method, Because this fluctuates, however, there is not a good idea as the overall average, because there can also be big fluctuations.
Consider whether I am starting to download files with 9 other people. I'm only getting 10% of my normal speed, but half way through the file, the other 9 integers I'm downloading at 10x which I started. My original 10% speed "How much time is left?" Calculate any more.
Personally, I will probably take an average of 30 seconds or more, and use it should be calculated based on recent speed, without wildly fluctuating. 30 seconds can not be the right amount, it will use some experiment to find a good amount.
Another option is to set the "instability limit", where you do not recalculate unless the speed is greater than that threshold (for example, random number, again, the need to experiment You can set the threshold to 10%, after that, if you are downloading at 100kb / s, then you do not recalculate the remaining time unless the speed of download is below 90kb / s or 110kb / s Do not be. If one is one of those changes, then the time is reinforced and a new limit is set.
Comments
Post a Comment