1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

curl: second follow-up for commit 5af2bfb9

Display progress-bar unconditionally on first call
This commit is contained in:
Yang Tse 2013-08-01 12:25:01 +02:00
parent 14a3139c4d
commit ca786233d2

View File

@ -55,7 +55,8 @@ int tool_progress_cb(void *clientp,
curl_off_t total;
curl_off_t point;
if(tvdiff(now, bar->prevtime) < 200L) /* allow 5 Hz */
if(bar->calls && (tvdiff(now, bar->prevtime) < 200L))
/* after first call, limit progress-bar updating to 5 Hz */
return 0;
/* expected transfer size */