diff options
author | Yang Tse <yangsita@gmail.com> | 2013-08-01 12:25:01 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-08-01 12:25:01 +0200 |
commit | ca786233d246539ba1a43250c64041a604cc0a30 (patch) | |
tree | 48af91ebfa65dddf505eee55dee363095438c319 | |
parent | 14a3139c4d3ef2787b2cf74632b66296d2b93b95 (diff) |
curl: second follow-up for commit 5af2bfb9
Display progress-bar unconditionally on first call
-rw-r--r-- | src/tool_cb_prg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c index cc0212648..b049377ea 100644 --- a/src/tool_cb_prg.c +++ b/src/tool_cb_prg.c @@ -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 */ |