diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-03-10 16:20:33 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-03-10 16:20:33 +0000 |
commit | 0d1fc73f2119e1f75f58b32cdc9f9d45fa71ac9c (patch) | |
tree | e50750dfe60d0c65b1a2247d6aa165a46d6b47d7 /lib/getinfo.c | |
parent | 50a185356082f800e760ceb932c062bf194145d7 (diff) |
Use more curl_off_t variables when doing the progress meter calculations and
argument passing and try to convert to double only when providing data to the
external world.
Diffstat (limited to 'lib/getinfo.c')
-rw-r--r-- | lib/getinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/getinfo.c b/lib/getinfo.c index 81eb2c055..cef65579a 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -135,10 +135,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) *param_doublep = data->progress.t_starttransfer; break; case CURLINFO_SIZE_UPLOAD: - *param_doublep = data->progress.uploaded; + *param_doublep = (double)data->progress.uploaded; break; case CURLINFO_SIZE_DOWNLOAD: - *param_doublep = data->progress.downloaded; + *param_doublep = (double)data->progress.downloaded; break; case CURLINFO_SPEED_DOWNLOAD: *param_doublep = data->progress.dlspeed; @@ -150,10 +150,10 @@ CURLcode Curl_getinfo(struct SessionHandle *data, CURLINFO info, ...) *param_longp = data->set.ssl.certverifyresult; break; case CURLINFO_CONTENT_LENGTH_DOWNLOAD: - *param_doublep = data->progress.size_dl; + *param_doublep = (double)data->progress.size_dl; break; case CURLINFO_CONTENT_LENGTH_UPLOAD: - *param_doublep = data->progress.size_ul; + *param_doublep = (double)data->progress.size_ul; break; case CURLINFO_REDIRECT_TIME: *param_doublep = data->progress.t_redirect; |