pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit 43067b2505458b2bfc5e3d9aa0c93406c6295ee8
parent 6ec200b51f08cd6bc0bca5125c3a3aa8d9ae980d
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sun, 19 Oct 2014 17:07:10 -0600

product_scraper: fix rand sleep time

Diffstat:
Mproduct_scraper.pl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product_scraper.pl b/product_scraper.pl @@ -78,7 +78,7 @@ for (keys %product_map) { my $old = 0; my $start = time; for my $node (@results) { - sleep rand % 10; + sleep int(rand(10)); my $product = HTML::Grabber->new(html => $node); # title is easier to parse from general results page