]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Gracefully handle opt.downloaded overflowing.
[wget] / src / main.c
index 3bb6b14f5c92445e0fdfcc6b8c87597e52ae7f63..956b94852321df873e1c04c3c3549f20aa93f1c8 100644 (file)
@@ -771,10 +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_very_long (opt.downloaded),
+                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));