riemann-babbler 2.0.0pre6 → 2.0.0pre7

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.
@@ -37,7 +37,7 @@ class Riemann::Babbler::Plugin::Pgsql < Riemann::Babbler::Plugin
37
37
  end
38
38
 
39
39
  def rep_lag_state
40
- rep_lag = abs(run_sql(plugin.rep_lag_sql).to_i)
40
+ rep_lag = run_sql(plugin.rep_lag_sql).to_i.abs
41
41
  if rep_lag >= plugin.rep_lag_crit
42
42
  { :service => plugin.service + ' rep_lag', :description => 'Postgresql replication lag state', :state => 'critical', :metric => rep_lag }
43
43
  elsif rep_lag >= plugin.rep_lag_warn
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '2.0.0pre6'
3
+ VERSION = '2.0.0pre7'
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: 2.0.0pre6
4
+ version: 2.0.0pre7
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors: