diff --git a/lib/urldata.h b/lib/urldata.h index 4f320408a4f1fe5951ce08c78b958e64bac6087a..5eba3c659da6d7d7e2fb4d4a8dd7c0e9e6cc566e 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; };