summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Markus <tobias@markus-regensburg.de>2014-01-18 22:45:49 +0100
committerDaniel Stenberg <daniel@haxx.se>2014-01-18 22:46:32 +0100
commitdb1beab1d7bd37948155ab741caae079053f92a8 (patch)
tree993377e2cec6a2efead0318dd2403129a8aea67a /src
parent93ca1d2065e570382853710b4f8fd9da38eb9668 (diff)
downloadcurl-db1beab1d7bd37948155ab741caae079053f92a8.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/tool_cb_prg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_cb_prg.c b/src/tool_cb_prg.c
index 6e6f50359..cc9091abe 100644
--- a/src/tool_cb_prg.c
+++ b/src/tool_cb_prg.c
@@ -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;