1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

progress meter fixes

This commit is contained in:
Daniel Stenberg 2001-10-12 12:31:43 +00:00
parent ef48c73783
commit b438c46764

View File

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