A Linus Nielsen Feltzing-patch that removes the decimals from the size
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Apr 2001 11:24:29 +0000 (11:24 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 19 Apr 2001 11:24:29 +0000 (11:24 +0000)
outputs...

src/writeout.c

index 92a4c63824cb406aa2b018d4440ab7c8fa777d6a..7f2fa907a1ab48fa96a1c14655bc60b79f9d1049 100644 (file)
@@ -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 ==