metrix 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/metrix/cli.rb +1 -2
- data/lib/metrix/version.rb +1 -1
- metadata +1 -1
data/lib/metrix/cli.rb
CHANGED
@@ -110,7 +110,6 @@ module Metrix
|
|
110
110
|
reporter << m
|
111
111
|
end
|
112
112
|
end
|
113
|
-
|
114
113
|
reporter.flush
|
115
114
|
rescue SystemExit
|
116
115
|
$running = false
|
@@ -135,7 +134,7 @@ module Metrix
|
|
135
134
|
end
|
136
135
|
|
137
136
|
def reporter
|
138
|
-
if attributes[:opentsdb]
|
137
|
+
@reporter ||= if attributes[:opentsdb]
|
139
138
|
require "metrix/opentsdb"
|
140
139
|
uri = URI.parse(attributes[:opentsdb])
|
141
140
|
Metrix::OpenTSDB.new(uri.host, uri.port)
|
data/lib/metrix/version.rb
CHANGED