arb-bs 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/bs_pic +6 -5
- data/lib/arb/bs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78cd3a7ab49fc17305276dc8adb73796469dbd4a
|
|
4
|
+
data.tar.gz: fbef3647b36f7d752025a010381a60bfded50398
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edfcfc35241a1dd0abc9424d31d92525332bfad07074fe1e5231df7385f1f0d421e18eec835c7bc070fe70dcccf85b0fe88707334a4dd795d32a02a68d85f966
|
|
7
|
+
data.tar.gz: 1a4982acc65d38a757ace416af9e156ff01ca253363bbbdc64ba82bedc82c0ffd635597bc572b866d3070a5d3bedf0da44856eb28cbb7697fcc62f784c071fd1
|
data/exe/bs_pic
CHANGED
|
@@ -7,8 +7,9 @@ include Arb
|
|
|
7
7
|
|
|
8
8
|
domain='www.budejie.com'
|
|
9
9
|
map_file='map.txt'
|
|
10
|
-
|
|
11
|
-
thread_count=(ARGV[
|
|
10
|
+
|
|
11
|
+
thread_count=(ARGV[0] || 3).to_i
|
|
12
|
+
max_page=(ARGV[1] || 50).to_i
|
|
12
13
|
#Minimun idle time(in seconds) between two complete rounds.
|
|
13
14
|
min_idle_time=(ARGV[2] || 600).to_i
|
|
14
15
|
|
|
@@ -41,8 +42,8 @@ Thread.parallel(thread_count) do |dispatcher|
|
|
|
41
42
|
sleep tmp
|
|
42
43
|
end
|
|
43
44
|
end
|
|
45
|
+
tmp=min_idle_time+rand(5)
|
|
46
|
+
puts "Complete round finished, next action in #{tmp} seconds later."
|
|
47
|
+
sleep tmp
|
|
44
48
|
end
|
|
45
|
-
tmp=min_idle_time+rand(5)
|
|
46
|
-
puts "Complete round finished, next action in #{tmp} seconds later."
|
|
47
|
-
sleep tmp
|
|
48
49
|
end
|
data/lib/arb/bs/version.rb
CHANGED