Fix documentation for update_speed_ring()

* progress.c (update_speed_ring): The comment for the function
    incorrectly stated that the function uses thirty samples from the
    past instead of twenty.

    Reported-By: Yi Li <lovelylich@gmail.com>
This commit is contained in:
Darshit Shah 2015-05-07 11:26:47 +05:30
parent 9b1dd6dab8
commit b6b1388fb7
1 changed files with 1 additions and 1 deletions

View File

@ -693,7 +693,7 @@ bar_finish (void *progress, double dltime)
The idea is that for fast downloads, we get the speed over exactly
the last three seconds. For slow downloads (where a network read
takes more than 150ms to complete), we get the speed over a larger
time period, as large as it takes to complete thirty reads. This
time period, as large as it takes to complete twenty reads. This
is good because slow downloads tend to fluctuate more and a
3-second average would be too erratic. */