Commit cfe3c08f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

progress: progress.timespent needs to be us

follow-up to 64ed44a8 to fix test 500 failures
parent e5d6aa8d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)