]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Gracefully handle opt.downloaded overflowing.
[wget] / src / main.c
index 8bda521b84069040fad3989579ebfc218cf615f2..956b94852321df873e1c04c3c3549f20aa93f1c8 100644 (file)
@@ -771,9 +771,12 @@ Can't timestamp and not clobber old files at the same time.\n"));
     {
       logprintf (LOG_NOTQUIET,
                 _("\nFINISHED --%s--\nDownloaded: %s bytes in %d files\n"),
-                time_str (NULL), legible (opt.downloaded), opt.numurls);
+                time_str (NULL),
+                (opt.downloaded_overflow ?
+                 "<overflow>" : legible_very_long (opt.downloaded)),
+                opt.numurls);
       /* Print quota warning, if exceeded.  */
-      if (opt.quota && opt.downloaded > opt.quota)
+      if (downloaded_exceeds_quota ())
        logprintf (LOG_NOTQUIET,
                   _("Download quota (%s bytes) EXCEEDED!\n"),
                   legible (opt.quota));