aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-12 12:31:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-12 12:31:43 +0000
commitb438c46764b680a314000b7ca69bb1d898379d0f (patch)
tree30101893e0759ce2ac727250341c0032d369d9e4 /lib
parentef48c737834a68a1731ca09324f50db5dafa6fdb (diff)
progress meter fixes
Diffstat (limited to 'lib')
-rw-r--r--lib/urldata.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/urldata.h b/lib/urldata.h
index 4f320408a..5eba3c659 100644
--- a/lib/urldata.h
+++ b/lib/urldata.h
@@ -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;
};