diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-01-01 22:11:13 +1300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-01-04 18:04:59 +1300 |
commit | 0ee3fb549829639ec519741951202ec41671c086 (patch) | |
tree | 7fe1477132af1eec8951139fd69bf3e1e2a0f327 /lib/strtoofft.h | |
parent | 481539e9020138abec6416e5a75daddd862267d7 (diff) | |
download | curl-0ee3fb549829639ec519741951202ec41671c086.tar.gz |
progress: calculate transfer speed on milliseconds if possiblebagder/progress-first-second-accuracy
to increase accuracy for quick transfers
Fixes #2200
Diffstat (limited to 'lib/strtoofft.h')
-rw-r--r-- | lib/strtoofft.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/strtoofft.h b/lib/strtoofft.h index 244411a87..be19cd716 100644 --- a/lib/strtoofft.h +++ b/lib/strtoofft.h @@ -7,7 +7,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2018, 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,14 +40,6 @@ * of 'long' the conversion function to use is strtol(). */ -#if (SIZEOF_CURL_OFF_T == 4) -# define CURL_OFF_T_MAX CURL_OFF_T_C(0x7FFFFFFF) -#else - /* assume CURL_SIZEOF_CURL_OFF_T == 8 */ -# define CURL_OFF_T_MAX CURL_OFF_T_C(0x7FFFFFFFFFFFFFFF) -#endif -#define CURL_OFF_T_MIN (-CURL_OFF_T_MAX - CURL_OFF_T_C(1)) - typedef enum { CURL_OFFT_OK, /* parsed fine */ CURL_OFFT_FLOW, /* over or underflow */ |