]> granicus.if.org Git - curl/commitdiff
Subject: progress bar: increase update frequency to 10Hz
authorTobias Markus <tobias@markus-regensburg.de>
Sat, 18 Jan 2014 21:45:49 +0000 (22:45 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 18 Jan 2014 21:46:32 +0000 (22:46 +0100)
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>
src/tool_cb_prg.c

index 6e6f503596222d306f4b1bec6f42bddc9890aaa3..cc9091abe952360af0b61fa8808c03b780a89a1b 100644 (file)
@@ -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;