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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ccc2ec34b5c3eb79b322ab6ec1cb0d716beeb6e
4
- data.tar.gz: fc511af563df249e3c654dd148be044bc6642460
3
+ metadata.gz: a25b95fd253853b4dcb8eac1d3c5372b00cbbc96
4
+ data.tar.gz: 2896959d98b7940cc4356235445c83f0542d3774
5
5
  SHA512:
6
- metadata.gz: fb2249479571ba5c9e534f4c4f1bf9cdeba8e00af3b105920eb15e6ebab4e894a713539aea0816b6e8d1145777ab60395db1a51bbc09b5e44fdb6d844589767d
7
- data.tar.gz: '085c2c9f945bb7a946494bd42f4ff17f7aa7e0519d050ef0ce8cb7de9e4336f8f704d769a5681e84cdf1488227555952b2145617240322580bbcdaeebbc7d57e'
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
 
@@ -1,3 +1,3 @@
1
1
  module GasLoadTester
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.12"
3
3
  end
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.8
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-02-15 00:00:00.000000000 Z
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.8
127
+ rubygems_version: 2.6.11
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Ruby load test library.