From 1691a31cab33ef1d6a186bd08e5f8cf7661e34c1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 31 Jul 2013 00:17:56 +0200 Subject: curl: make --progress-bar update the line less frequently Also, use memset() instead of a lame loop. The previous logic that tried to avoid too many updates were very ineffective for really fast transfers, as then it could easily end up doing hundreds of updates per second that would make a significant impact in transfer performance! Bug: http://curl.haxx.se/mail/archive-2013-07/0031.html Reported-by: Marc Doughty --- src/tool_cb_prg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tool_cb_prg.h') diff --git a/src/tool_cb_prg.h b/src/tool_cb_prg.h index 81915b2d5..ceb85980c 100644 --- a/src/tool_cb_prg.h +++ b/src/tool_cb_prg.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2013, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -29,6 +29,7 @@ struct ProgressData { int calls; curl_off_t prev; + time_t prevtime; int width; FILE *out; /* where to write everything to */ curl_off_t initial_size; -- cgit v1.2.3