cURL / Mailing Lists / curl-library / Single Mail

curl-library

progress.c patch

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Sat, 17 Apr 2004 16:06:36 +0200

The timespent value is 1000 times too high :)

--- CVS-latest/lib/progress.c Fri Apr 09 11:36:31 2004
+++ lib/progress.c Sat Apr 17 15:39:32 2004
@@ -250,7 +250,7 @@

   /* The time spent so far (from the start) */
   data->progress.timespent = Curl_tvdiff_secs(now, data->progress.start);
- timespent = (long)data->progress.timespent*1000.0;
+ timespent = (long)data->progress.timespent;

   /* The average download speed this far */
   data->progress.dlspeed =

--gv
Received on 2004-04-17