riemann-babbler 0.4.5 → 0.4.6

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.
@@ -108,6 +108,7 @@ module Riemann
108
108
 
109
109
  # хелпер, описание статуса
110
110
  def state(my_state)
111
+ return 'critical' if my_state.nil?
111
112
  unless plugin.states.warning.nil?
112
113
  case
113
114
  when my_state.between?(plugin.states.warning, plugin.states.critical)
@@ -13,7 +13,7 @@ class Riemann::Babbler::Cpu < Riemann::Babbler
13
13
  end
14
14
 
15
15
  @old_cpu = [u2, n2, s2, i2]
16
- {:service => plugin.service, :metric => fraction}
16
+ { :service => plugin.service, :metric => fraction }
17
17
  end
18
18
 
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.4.5'
3
+ VERSION = '0.4.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -147,7 +147,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  segments:
149
149
  - 0
150
- hash: 3105355683126280679
150
+ hash: -2166000681743848238
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements: