mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
A Linus Nielsen Feltzing-patch that removes the decimals from the size
outputs...
This commit is contained in:
parent
60a43561e2
commit
32f966b239
@ -141,12 +141,12 @@ void ourWriteOut(CURL *curl, char *writeinfo)
|
||||
case VAR_SIZE_UPLOAD:
|
||||
if(CURLE_OK ==
|
||||
curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &doubleinfo))
|
||||
fprintf(stream, "%.3f", doubleinfo);
|
||||
fprintf(stream, "%.0f", doubleinfo);
|
||||
break;
|
||||
case VAR_SIZE_DOWNLOAD:
|
||||
if(CURLE_OK ==
|
||||
curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &doubleinfo))
|
||||
fprintf(stream, "%.3f", doubleinfo);
|
||||
fprintf(stream, "%.0f", doubleinfo);
|
||||
break;
|
||||
case VAR_SPEED_DOWNLOAD:
|
||||
if(CURLE_OK ==
|
||||
|
Loading…
Reference in New Issue
Block a user