summaryrefslogtreecommitdiff
path: root/lib/progress.c
Commit message (Collapse)AuthorAgeFilesLines
* Use SIZEOF_OFF_T definition from config fileYang Tse2008-08-261-1/+1
|
* Library internal only C preprocessor macros FORMAT_OFF_T and FORMAT_OFF_TUYang Tse2008-08-161-13/+13
| | | | | | | | | | | | remain in use as internal curl_off_t print formatting strings for the internal *printf functions which still cannot handle print formatting string directives such as "I64d", "I64u", and others available on MSVC, MinGW, Intel's ICC, and other DOS/Windows compilers. This reverts previous commit part which did: FORMAT_OFF_T -> CURL_FORMAT_CURL_OFF_T FORMAT_OFF_TU -> CURL_FORMAT_CURL_OFF_TU
* For congruency sake with the naming of other CURL_XXXXXX_CURL_OFF_T macros,Yang Tse2008-08-151-13/+13
| | | | | | | | | | | | | | the names of the curl_off_t formatting string directives now become CURL_FORMAT_CURL_OFF_T and CURL_FORMAT_CURL_OFF_TU. CURL_FMT_OFF_T -> CURL_FORMAT_CURL_OFF_T CURL_FMT_OFF_TU -> CURL_FORMAT_CURL_OFF_TU Remove the use of an internal name for the curl_off_t formatting string directives and use the common one available from the inside and outside of the library. FORMAT_OFF_T -> CURL_FORMAT_CURL_OFF_T FORMAT_OFF_TU -> CURL_FORMAT_CURL_OFF_TU
* Fix curl_off_t sized constants usageYang Tse2008-08-121-41/+36
|
* s/SIZEOF_CURL_OFF_T/CURL_SIZEOF_CURL_OFF_T/gYang Tse2008-08-111-1/+1
|
* Introcuding a new timestamp for curl_easy_getinfo():Daniel Stenberg2008-07-031-1/+5
| | | | | | | | CURLINFO_APPCONNECT_TIME. This is set with the "application layer" handshake/connection is completed (typically SSL, TLS or SSH). By using this you can figure out the application layer's own connect time. You can extract the time stamp using curl's -w option and the new variable named 'time_appconnect'. This feature was sponsored by Lenny Rachitsky at NeuStar.
* struct HandleData is now called struct SingleRequest, and is only for data thatDaniel Stenberg2007-11-241-4/+3
| | | | | | | | | | | is inited at the start of the DO action. I removed the Curl_transfer_keeper struct completely, and I had to move out a few struct members (that had to be set before DO or used after DONE) to the UrlState struct. The SingleRequest struct is accessed with SessionHandle->req. One of the biggest reasons for doing this was the bunch of duplicate struct members in HandleData and Curl_transfer_keeper since it was really messy to keep track of two variables with the same name and basically the same purpose!
* - Prevent the internal progress meter from updating more frequently than onceDaniel Stenberg2007-04-181-2/+9
| | | | per second.
* Change spelling, ONE_TERRABYTE -> ONE_TERABYTEYang Tse2007-03-231-8/+10
| | | | | | | Shave off a couple of function calls in the part of Curl_pgrsUpdate() which is always executed when called. Fix a couple of comments.
* Bryan Henderson fixed the progress function so that it can get calledYang Tse2007-03-191-154/+156
| | | | | | more frequently allowing same calling frecuency for the client progress callback, while keeping the once a second frecuency for speed calculations and internal display of the transfer progress.
* reverted the pselect patch => http://curl.haxx.se/mail/lib-2007-03/0100.htmlDaniel Stenberg2007-03-111-4/+3
|
* - Bryan Henderson introduces two things:Daniel Stenberg2007-03-101-3/+4
| | | | | 1) the progress callback gets called more frequently (at times) 2) libcurl *might* call the callback when it receives a signal
* Update copyright year, since the file has been modifiedYang Tse2006-10-271-1/+1
|
* Major overhaul introducing http pipelining support and shared connectionDaniel Stenberg2006-09-071-2/+2
| | | | cache within the multi handle.
* As reported in Mandrake's bug tracker bug 12289Daniel Stenberg2004-11-261-4/+2
| | | | | | (http://qa.mandrakesoft.com/show_bug.cgi?id=12289), curl would print a newline to "finish" the progress meter after each redirect and not only after a completed transfer.
* prevent warning with comparison between signed and unsignedDaniel Stenberg2004-10-081-1/+1
|
* removed tabs and trailing whitespace from sourceDaniel Stenberg2004-10-061-1/+1
|
* more typecasts to please picky compilersDaniel Stenberg2004-08-101-1/+1
|
* explicit typecasts to double to prevent warnings about implicit conversionsDaniel Stenberg2004-07-021-5/+5
| | | | that might lose accuracy
* typecast to int when the variable is int!Daniel Stenberg2004-07-011-2/+2
|
* Replaced all uses of sprintf() with the safer snprintf(). It is just aDaniel Stenberg2004-06-241-17/+18
| | | | precaution to prevent mistakes to lead to buffer overflows.
* quickfix to avoid division by zero, possibly we should go over all of theseDaniel Stenberg2004-05-211-2/+4
| | | | once and for all
* calculate upload and download speed using doubles to keep precision.Daniel Stenberg2004-05-201-14/+16
| | | | deleted trailing whitespace
* hm, avoid division by zero more carefully with that new percentage mathDaniel Stenberg2004-05-051-3/+3
|
* Gisle fixed the percentage to work, I adjusted it slightly to not as easilyDaniel Stenberg2004-05-051-3/+6
| | | | overflow on 32bit filesize-systems
* made the progress meter display not overflow even if _very_ large filesDaniel Stenberg2004-05-051-6/+25
| | | | | are transfered. The maximum size we support now is 8 exabytes, which equals to 8192 petabytes...
* if the values allow it, avoid floting point math for the current speedDaniel Stenberg2004-05-051-4/+15
|
* Gisle Vanem corrected a mistake in a recent progress fixDaniel Stenberg2004-04-191-1/+1
|
* Dirk Manske increased the resolution for what the CURLINFO_*_TIME return.Daniel Stenberg2004-04-091-7/+7
|
* Dirk Manske's feedback:Daniel Stenberg2004-04-021-10/+8
| | | | | * bring back subsecond resolution to CURLINFO_TOTAL_TIME * Fix the Curl_pgrsDone() so that the final progress update is shown properly
* made time2str() use longs internally instead to prevent compiler warningsDaniel Stenberg2004-03-231-6/+6
| | | | when converting to ints
* added explicit typecasts to prevent compiler warnings on variable conversionsDaniel Stenberg2004-03-231-6/+6
|
* it actually fits to make a NNNd NNh display so this can be used up toDaniel Stenberg2004-03-231-2/+2
| | | | 999 days
* Fixed the time fields no never get wider than 8 letters. They can now switchDaniel Stenberg2004-03-231-69/+53
| | | | | | to a "days + hours" or even "just days" display if the time value is very large. I also switched several calculations over to fixed-point instead of the previous doubles.
* Made max5data() take a curl_off_t size as argument instead of double. ShouldDaniel Stenberg2004-03-111-16/+18
| | | | | make the progress meter more accurate for large files. Also made the sprintf usage in that function avoid floating point.
* Use more curl_off_t variables when doing the progress meter calculations andDaniel Stenberg2004-03-101-16/+16
| | | | | argument passing and try to convert to double only when providing data to the external world.
* Yet another curl_off_t printf format attempt, we now exclude the %-letter fromDaniel Stenberg2004-03-021-5/+5
| | | | | FORMAT_OFF_T to allow additional options to get specified, like with '"%5" FORMAT_OFF_T'.
* use FORMAT_OFF_T instead of CURL_FORMAT_OFF_T to reduce the complexity ofDaniel Stenberg2004-03-021-1/+1
| | | | having to redef that name
* Use CURL_FORMAT_OFF_T for printf()inf curl_off_t variables.Daniel Stenberg2004-03-011-1/+2
|
* Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg2004-01-291-4/+6
| | | | warnings. Minor edits by me.
* very big transfers now get nicer progress displayed after 9999 megabytes haveDaniel Stenberg2004-01-271-0/+11
| | | | been transfered!
* fixed the progress meter display for files >32 bit, Gisle Vanem reportedDaniel Stenberg2004-01-231-3/+3
|
* use the %dk display for one extra k of progressDaniel Stenberg2004-01-151-1/+1
|
* updated year in the copyright stringDaniel Stenberg2004-01-071-1/+1
|
* David J Meyer's large file support.Daniel Stenberg2004-01-051-1/+2
|
* Gisle Vanem's IPv6-on-Windows patch applied!Daniel Stenberg2003-10-141-6/+0
|
* George Comninos provided a fix that calls the progress meter when waitingDaniel Stenberg2003-05-141-6/+8
| | | | for FTP command responses take >1 second.
* removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg2003-01-291-8/+0
| | | | way for emacs, and vim users should provide a similar non-polluting style
* copyright year update in the source headerDaniel Stenberg2003-01-161-1/+1
|
* updated source code boilerplate/headerDaniel Stenberg2002-09-031-7/+7
|