diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-11-11 10:19:22 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-12 13:32:21 +0100 |
commit | de4de4e3c7c4690393de384f81b6c094d9f5d553 (patch) | |
tree | ea50b347624888083bdd2f0417f98d50e5cfa70a /lib/speedcheck.c | |
parent | 56bb7b1a3c17657a376a32f39eb7d2d15876a519 (diff) | |
download | curl-de4de4e3c7c4690393de384f81b6c094d9f5d553.tar.gz |
timeval: prefer time_t to hold seconds instead of long
... as long is still 32bit on modern 64bit windows machines, while
time_t is generally 64bit.
Diffstat (limited to 'lib/speedcheck.c')
-rw-r--r-- | lib/speedcheck.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/speedcheck.c b/lib/speedcheck.c index 13c34af96..bc15d97be 100644 --- a/lib/speedcheck.c +++ b/lib/speedcheck.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -40,8 +40,8 @@ CURLcode Curl_speedcheck(struct Curl_easy *data, data->set.low_speed_time && (Curl_tvlong(data->state.keeps_speed) != 0) && (data->progress.current_speed < data->set.low_speed_limit)) { - long howlong = Curl_tvdiff(now, data->state.keeps_speed); - long nextcheck = (data->set.low_speed_time * 1000) - howlong; + time_t howlong = Curl_tvdiff(now, data->state.keeps_speed); + time_t nextcheck = (data->set.low_speed_time * 1000) - howlong; /* We are now below the "low speed limit". If we are below it for "low speed time" seconds we consider that enough reason |