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 +4 -4
- data/lib/gas_load_tester/test.rb +5 -0
- data/lib/gas_load_tester/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: 63bf24d0e1745295a5cac7e77525b91eaa05b949
|
4
|
+
data.tar.gz: 8643f94f09ba0e5f012ef675c35b464bdf794515
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1947cd2a087cf8e3d93f39b2d349ecbe7f94be70a7be4cb0696292de5b5a5d3862123f02819fd36b91b5fc1434878c70b865b25d1d110a5855921e27543f6d2e
|
7
|
+
data.tar.gz: 7ee4f3e549cc3c1616eac32cd334002b5b188c8f0faac4672b7af60e7d61dfc24d8a13a6bd6ac50e496aaaf929be9506bbe09a82f3adce4e76e6e29e60112e4e
|
data/lib/gas_load_tester/test.rb
CHANGED
@@ -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
|