gas_load_tester 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1312b997b7cfd9f0a6bfe60e137b71d81faf19b
4
- data.tar.gz: 66fa05b246ce0c86f65472442fdb1d705ee30780
3
+ metadata.gz: 63bf24d0e1745295a5cac7e77525b91eaa05b949
4
+ data.tar.gz: 8643f94f09ba0e5f012ef675c35b464bdf794515
5
5
  SHA512:
6
- metadata.gz: '01917387f0e0d709761e8b9d8956790522ba5d13d9b500dc7a2eb6b721795fd67bcffcecae3cbfa4429fb93c5dd0f6cac97a29137c29b40b212d1926d1497e22'
7
- data.tar.gz: a625394520be349e008a5cfba0e7d1c8cb911cc481fbaebe5b5f5ee2a077098e9c3977175c98333e8e3b167eb1e9930f763afcc235beeae02aa58aae263a09f3
6
+ metadata.gz: 1947cd2a087cf8e3d93f39b2d349ecbe7f94be70a7be4cb0696292de5b5a5d3862123f02819fd36b91b5fc1434878c70b865b25d1d110a5855921e27543f6d2e
7
+ data.tar.gz: 7ee4f3e549cc3c1616eac32cd334002b5b188c8f0faac4672b7af60e7d61dfc24d8a13a6bd6ac50e496aaaf929be9506bbe09a82f3adce4e76e6e29e60112e4e
@@ -92,6 +92,7 @@ module GasLoadTester
92
92
  rps_decimal = rps.modulo(1)
93
93
  full_rps = (rps - rps_decimal).to_i
94
94
  stacking_decimal = 0.0
95
+ counter = 0
95
96
  self.time.times do |index|
96
97
  self.results[index] = []
97
98
  start_index_time = Time.now
@@ -101,7 +102,11 @@ module GasLoadTester
101
102
  additional_client = 1
102
103
  stacking_decimal -= 1
103
104
  end
105
+ if (index+1) == self.time && (counter + (full_rps + additional_client)) < self.client
106
+ additional_client += (self.client - (counter + (full_rps + additional_client)))
107
+ end
104
108
  (full_rps + additional_client).times do
109
+ counter += 1
105
110
  threads << Thread.new do
106
111
  begin
107
112
  start_time = Time.now
@@ -1,3 +1,3 @@
1
1
  module GasLoadTester
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gas_load_tester
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanapat Sainak