mirror of
https://github.com/curl/curl.git
synced 2026-06-17 01:15:42 +03:00
Subject: progress bar: increase update frequency to 10Hz
Increasing the update frequency of the progress bar to 10Hz greatly improves the visual appearance of the progress bar (at least in my impression). Signed-off-by: Tobias Markus <tobias@markus-regensburg.de>
This commit is contained in:
parent
93ca1d2065
commit
db1beab1d7
1 changed files with 2 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ int tool_progress_cb(void *clientp,
|
|||
/* we've come this far */
|
||||
point = dlnow + ulnow + bar->initial_size;
|
||||
|
||||
if(bar->calls && (tvdiff(now, bar->prevtime) < 200L) && point < total)
|
||||
/* after first call, limit progress-bar updating to 5 Hz */
|
||||
if(bar->calls && (tvdiff(now, bar->prevtime) < 100L) && point < total)
|
||||
/* after first call, limit progress-bar updating to 10 Hz */
|
||||
/* update when we're at 100% even if last update is less than 200ms ago */
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue