]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
progress meter fixes
authorDaniel Stenberg <daniel@haxx.se>
Fri, 12 Oct 2001 12:31:43 +0000 (12:31 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Oct 2001 12:31:43 +0000 (12:31 +0000)
lib/urldata.h

index 4f320408a4f1fe5951ce08c78b958e64bac6087a..5eba3c659da6d7d7e2fb4d4a8dd7c0e9e6cc566e 100644 (file)
@@ -372,7 +372,9 @@ struct Progress {
   bool callback;  /* set when progress callback is used */
   int width; /* screen width at download start */
   int flags; /* see progress.h */
-  double timespent;
+
+  long timespent;
+
   double dlspeed;
   double ulspeed;
 
@@ -382,9 +384,10 @@ struct Progress {
 
   struct timeval start;
   struct timeval t_startsingle;
-#define CURR_TIME 5
+#define CURR_TIME (5+1) /* 6 entries for 5 seconds */
 
   double speeder[ CURR_TIME ];
+  struct timeval speeder_time[ CURR_TIME ];
   int speeder_c;
 };