]> sjero.net Git - wget/blobdiff - src/ChangeLog
[svn] Adjust bandwidth limitation sleep for the error of previous sleeps.
[wget] / src / ChangeLog
index 7f64e35f7d5df9c77952e5e7142ca993e1455a4a..49627335f0bf330427caa15ae6382403d54ce759 100644 (file)
@@ -1,3 +1,45 @@
+2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * init.c (simple_atof): New function.
+       (cmd_time): Use it.
+       (cmd_bytes): Accept things like "1.5k" and such.  Use simple_atof
+       to parse decimals.
+
+       * retr.c (limit_bandwidth): Adjust each sleep by the error of the
+       previous one.
+
+2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * main.c (main): Use setoptval() for setting the options.  Use
+       run_command for `-e'.
+
+       * init.c (parse_line): Rewritten to return COMIND right away.
+       Changed linkage to static.
+       (run_wgetrc): Use the available comind when calling setval, so it
+       doesn't have to be computed twice.
+       (setval_internal): New function, runs the command's action without
+       any error checking.
+       (setoptval): New function, does what setval used to do, but exits
+       in case of error.
+       (run_command): New function.
+
+2003-09-21  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * connect.c (select_fd): Change MAXTIME's type to double.  Handle
+       its decimal part.
+
+       * retr.c (sleep_between_retrievals): In the random-wait case, use
+       random_float() to wait between 0 and 2*opt.wait seconds.
+
+       * utils.c (run_with_timeout): Accept `double' timeouts.  Correctly
+       handle timeout values in (0, 1) range.
+       (random_float): New function.
+
+       * options.h (struct options): Change the types of wait, waitretry,
+       and timeout to double.
+
+       * init.c (cmd_time): Accept floating point time.
+
 2003-09-20  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * retr.c (get_contents): Cosmetic fixes.