Commit c55ba778 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

fixed a bug where zero-config-gauges were not properly initialized when...

fixed a bug where zero-config-gauges were not properly initialized when running with :http_websocket_only
parent 449b7db4
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -2,7 +2,13 @@ class FnordMetric::Reactor

  def initialize
    @redis = FnordMetric.mk_redis
    @namespaces = FnordMetric.namespaces
    @namespaces = FnordMetric.namespaces.dup
  end

  def ready!
    @namespaces.each do |key, ns|
      ns.ready!(@redis)
    end
  end

  def execute(*args)
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ class FnordMetric::WebSocket < Rack::WebSocket::Application
  end

  def on_open(env)
    # socket openened :)
    @reactor.ready!
  end

  def on_message(env, message)