Skip to content
Snippets Groups Projects
Commit ca786233 authored by Yang Tse's avatar Yang Tse
Browse files

curl: second follow-up for commit 5af2bfb9

Display progress-bar unconditionally on first call
parent 14a3139c
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment