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:
parent
e5d6aa8d61
commit
cfe3c08f69
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user