riemann-babbler 0.6.1 → 0.6.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.
@@ -17,7 +17,8 @@ module Riemann
17
17
  err=nil
18
18
  out=nil
19
19
  begin
20
- Timeout::timeout(5) {
20
+ timeout_shell = ( plugin.interval * 2 ).to_f/3
21
+ Timeout::timeout(timeout_shell) {
21
22
  Open3.popen3(*cmd) do |stdin, stdout, stderr, wait_thread|
22
23
  err = stderr.gets(nil)
23
24
  out = stdout.gets(nil)
@@ -42,7 +43,7 @@ module Riemann
42
43
  # db get
43
44
  # http://sequel.rubyforge.org/rdoc/files/doc/opening_databases_rdoc.html
44
45
  #
45
- def db_get(connection_string, query)
46
+ def sql(connection_string, query)
46
47
  begin
47
48
  db = Sequel.connect connection_string
48
49
  db.fetch(query)
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  class Babbler
3
- VERSION = '0.6.1'
3
+ VERSION = '0.6.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.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
164
164
  version: '0'
165
165
  segments:
166
166
  - 0
167
- hash: 1272645917394109107
167
+ hash: 3834453135357588375
168
168
  required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  none: false
170
170
  requirements: