Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 513194

Summary: net-misc/wget - --random-wait option is not working
Product: Gentoo Linux Reporter: Kalisox <lsd>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gnu.org/software/wget/
Whiteboard:
Package list:
Runtime testing required: ---

Description Kalisox 2014-06-14 09:39:57 UTC
I tested all versions in portage, here that option does not work.

Reproducible: Always

Steps to Reproduce:
wget --wait 1m --random-wait http://gentoo.org
Actual Results:  
It just download every time without delay.
Comment 1 Kalisox 2014-06-14 09:41:27 UTC
On an interactive shell it works.
You need to do the same in a script file.
Comment 2 Kalisox 2014-06-14 09:45:30 UTC
Ops, seems that is related to [image/jpg] mime not everything.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-14 10:40:56 UTC
For that to work you need three things on the command line: --wait N --random-wait and more than one URL.

If you are going to script this anyway to have separate wget calls for singular URLs, then you might as well script a sleep time between calls instead of relying on wget to do it.

If you want this behaviour changed or better explained, please complain upstream at the [URL].
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-06-14 10:42:09 UTC
See the source code at src/retr.c around line 1151.