riemann-babbler 0.2.1 → 0.2.2

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.
@@ -41,7 +41,7 @@ module Riemann
41
41
 
42
42
  def report_with_diff(event)
43
43
  current_metric = event[:metric]
44
- event[:metric] = @storage[ event[:service] ] - current_metric if @storage.has_key? event[:service]
44
+ event[:metric] = current_metric - @storage[ event[:service] ] if @storage.has_key? event[:service]
45
45
  @storage[ event[:service] ] = current_metric
46
46
  event[:state] = state(current_metric) unless plugin.states.critical.nil?
47
47
  report(event)
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '0.2.1'
3
+ VERSION = '0.2.2'
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.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: