mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 07:38:49 -05: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