mirror of
https://github.com/curl/curl.git
synced 2026-07-10 15:07:20 +03:00
tool_progress: fix large time outputs and decimal size display
Time output: - was broken for really large times - now uses spaces instead of --:--:-- - >99999y is now the largest shown time - show HH:MM:SS as long as hours are fewer than 100 Size: - made the decimal output always only use a single decimal Test: - Add test 1622 to verify these functions Closes #20177
This commit is contained in:
parent
09374f6e75
commit
b32e66a8ee
6 changed files with 270 additions and 21 deletions
|
|
@ -34,6 +34,13 @@ int xferinfo_cb(void *clientp,
|
|||
bool progress_meter(CURLM *multi,
|
||||
struct curltime *start,
|
||||
bool final);
|
||||
struct per_transfer;
|
||||
void progress_finalize(struct per_transfer *per);
|
||||
|
||||
#ifdef UNITTESTS
|
||||
UNITTEST char *max5data(curl_off_t bytes, char *max5, size_t mlen);
|
||||
UNITTEST void time2str(char *r, size_t rlen, curl_off_t seconds);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* HEADER_CURL_TOOL_PROGRESS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue