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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/bs_pic +6 -5
  3. data/lib/arb/bs/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52017c07125bec9888bf1b9121b0199c55739aed
4
- data.tar.gz: 43c8a87e6718e1775600a85adab832fa9a27cd31
3
+ metadata.gz: 78cd3a7ab49fc17305276dc8adb73796469dbd4a
4
+ data.tar.gz: fbef3647b36f7d752025a010381a60bfded50398
5
5
  SHA512:
6
- metadata.gz: e2ce1c9be04741b606be0049791db52e41370b377a3c1ac7a0748c71523ca7e83c094ec9638dd60db1a065dac64cba0fa5b8c33543d087dc2817f91763c5fc3d
7
- data.tar.gz: dff05592efcd563db216a6adac9fb78b9b0cfc47730c67287712e2727f49849c540ae5311f47bacf1e7a68974d6ec90ff93cadc3524911b66bdc8fee51385f54
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
- max_page=(ARGV[0] || 50).to_i
11
- thread_count=(ARGV[1] || 3).to_i
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
@@ -1,5 +1,5 @@
1
1
  module Arb
2
2
  module Bs
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arb-bs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - arybin