diff options
Diffstat (limited to 'lib/dashing')
-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 5ee085f..53ee0dc 100644 --- a/lib/dashing/app.rb +++ b/lib/dashing/app.rb @@ -138,7 +138,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 } |