diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dashing/app.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dashing/app.rb b/lib/dashing/app.rb index 0ff3085..7f8a745 100644 --- a/lib/dashing/app.rb +++ b/lib/dashing/app.rb @@ -136,7 +136,7 @@ end def send_event(id, body, target=nil) body[:id] = id - body[:updatedAt] ||= Time.now.to_i + body[:updatedAt] ||= (Time.now.to_f * 1000.0).to_i event = format_event(body.to_json, target) Sinatra::Application.settings.history[id] = event unless target == 'dashboards' Sinatra::Application.settings.connections.each { |out| out << event } |