1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

progress: progress.timespent needs to be us

follow-up to 64ed44a815 to fix test 500 failures
This commit is contained in:
Daniel Stenberg 2017-06-24 21:14:50 +02:00
parent e5d6aa8d61
commit cfe3c08f69

View File

@ -361,8 +361,8 @@ int Curl_pgrsUpdate(struct connectdata *conn)
now = Curl_tvnow(); /* what time is it */
/* The time spent so far (from the start) */
data->progress.timespent = Curl_tvdiff(now, data->progress.start);
timespent = (curl_off_t)data->progress.timespent/1000; /* integer seconds */
data->progress.timespent = Curl_tvdiff_us(now, data->progress.start);
timespent = (curl_off_t)data->progress.timespent/1000000; /* seconds */
/* The average download speed this far */
data->progress.dlspeed = (curl_off_t)