Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513194 - net-misc/wget - --random-wait option is not working
Summary: net-misc/wget - --random-wait option is not working
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://www.gnu.org/software/wget/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-14 09:39 UTC by Kalisox
Modified: 2014-06-14 10:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.