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/transfer.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/transfer.c')
-rw-r--r-- | lib/transfer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index dd1ceef48..16ed596f1 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -985,7 +985,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, k->bytecount += nread; - Curl_pgrsSetDownloadCounter(data, (double)k->bytecount); + Curl_pgrsSetDownloadCounter(data, k->bytecount); if(!conn->bits.chunk && (nread || k->badheader)) { /* If this is chunky transfer, it was already written */ @@ -1188,7 +1188,7 @@ CURLcode Curl_readwrite(struct connectdata *conn, } k->writebytecount += bytes_written; - Curl_pgrsSetUploadCounter(data, (double)k->writebytecount); + Curl_pgrsSetUploadCounter(data, k->writebytecount); } while(!writedone); /* loop until we're done writing! */ @@ -1306,7 +1306,7 @@ CURLcode Curl_readwrite_init(struct connectdata *conn) if (!conn->bits.getheader) { k->header = FALSE; if(conn->size > 0) - Curl_pgrsSetDownloadSize(data, (double)conn->size); + Curl_pgrsSetDownloadSize(data, conn->size); } /* we want header and/or body, if neither then don't do this! */ if(conn->bits.getheader || !data->set.no_body) { |