astro-collectd 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/lib/collectd/em_server.rb +4 -1
- data/lib/collectd/interface.rb +5 -1
- data/lib/collectd/server.rb +4 -1
- metadata +3 -3
data/VERSION.yml
CHANGED
data/lib/collectd/em_server.rb
CHANGED
data/lib/collectd/interface.rb
CHANGED
@@ -16,7 +16,11 @@ module Collectd
|
|
16
16
|
@@servers = []
|
17
17
|
|
18
18
|
def add_server(interval, addr='ff18::efc0:4a42', port=25826)
|
19
|
-
|
19
|
+
if defined?(EM) && EM.running?
|
20
|
+
@@servers << EmServer.new
|
21
|
+
else
|
22
|
+
@@servers << Server.new(interval, addr, port)
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
def <<(server)
|
data/lib/collectd/server.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: astro-collectd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephan Maka
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-22 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -63,5 +63,5 @@ specification_version: 3
|
|
63
63
|
summary: Send collectd statistics from Ruby
|
64
64
|
test_files:
|
65
65
|
- spec/interface_spec.rb
|
66
|
-
- examples/em_sender.rb
|
67
66
|
- examples/sender.rb
|
67
|
+
- examples/em_sender.rb
|