From b6b1388fb73ad32b09aecae0ac338f6fd281e6c4 Mon Sep 17 00:00:00 2001 From: Darshit Shah Date: Thu, 7 May 2015 11:26:47 +0530 Subject: [PATCH] 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 --- src/progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/progress.c b/src/progress.c index c9794183..465bebfc 100644 --- a/src/progress.c +++ b/src/progress.c @@ -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. */