1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

A Linus Nielsen Feltzing-patch that removes the decimals from the size

outputs...
This commit is contained in:
Daniel Stenberg 2001-04-19 11:24:29 +00:00
parent 60a43561e2
commit 32f966b239

View File

@ -141,12 +141,12 @@ void ourWriteOut(CURL *curl, char *writeinfo)
case VAR_SIZE_UPLOAD: case VAR_SIZE_UPLOAD:
if(CURLE_OK == if(CURLE_OK ==
curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &doubleinfo)) curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &doubleinfo))
fprintf(stream, "%.3f", doubleinfo); fprintf(stream, "%.0f", doubleinfo);
break; break;
case VAR_SIZE_DOWNLOAD: case VAR_SIZE_DOWNLOAD:
if(CURLE_OK == if(CURLE_OK ==
curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &doubleinfo)) curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &doubleinfo))
fprintf(stream, "%.3f", doubleinfo); fprintf(stream, "%.0f", doubleinfo);
break; break;
case VAR_SPEED_DOWNLOAD: case VAR_SPEED_DOWNLOAD:
if(CURLE_OK == if(CURLE_OK ==