gas_load_tester 1.0.8 → 1.0.12
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/chart_builder.rb +10 -0
- data/lib/gas_load_tester/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a25b95fd253853b4dcb8eac1d3c5372b00cbbc96
|
4
|
+
data.tar.gz: 2896959d98b7940cc4356235445c83f0542d3774
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 914444b4ab661020a650807a46e6d265b995f60ae5e4165edf97a77f1dced190ae9abe2a3481be84469bc4818c50b99c50e53d1d418817faf5ca79ed342ea80a
|
7
|
+
data.tar.gz: 1395e307e3e0aa9e9e068b67af18d0abc7695b31969615f4e485ce02353496b5ecfee588a7708f6f5bf75f46fd231d372a70d17828eff13dc0667386ce21e317
|
@@ -220,8 +220,18 @@ module GasLoadTester
|
|
220
220
|
error_data[Time.at(key).utc.strftime("%H:%M:%S")] = values.select{|val| !val.pass }.count
|
221
221
|
if RUBY_VERSION >= "2.4.0"
|
222
222
|
average_time_data[Time.at(key).utc.strftime("%H:%M:%S")] = values.collect(&:time).sum.fdiv(values.size)*1000
|
223
|
+
if average_time_data[Time.at(key).utc.strftime("%H:%M:%S")].to_f.nan?
|
224
|
+
average_time_data[Time.at(key).utc.strftime("%H:%M:%S")] == 0
|
225
|
+
elsif average_time_data[Time.at(key).utc.strftime("%H:%M:%S")].infinite?
|
226
|
+
average_time_data[Time.at(key).utc.strftime("%H:%M:%S")] = 0
|
227
|
+
end
|
223
228
|
else
|
224
229
|
average_time_data[Time.at(key).utc.strftime("%H:%M:%S")] = values.collect(&:time).inject(0){|sum,x| sum + x }.fdiv(values.size)*1000
|
230
|
+
if average_time_data[Time.at(key).utc.strftime("%H:%M:%S")].to_f.nan?
|
231
|
+
average_time_data[Time.at(key).utc.strftime("%H:%M:%S")] == 0
|
232
|
+
elsif average_time_data[Time.at(key).utc.strftime("%H:%M:%S")].infinite?
|
233
|
+
average_time_data[Time.at(key).utc.strftime("%H:%M:%S")] = 0
|
234
|
+
end
|
225
235
|
end
|
226
236
|
}
|
227
237
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gas_load_tester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanapat Sainak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-progressbar
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.6.
|
127
|
+
rubygems_version: 2.6.11
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Ruby load test library.
|