Commit 32f966b2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

outputs...
parent 60a43561
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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 ==