We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2815bdf commit e1209b3Copy full SHA for e1209b3
lib/dashing/app.rb
@@ -138,7 +138,7 @@ def stop_with_connection_closing
138
139
def send_event(id, body, target=nil)
140
body[:id] = id
141
- body[:updatedAt] ||= Time.now.to_i
+ body[:updatedAt] ||= (Time.now.to_f * 1000.0).to_i
142
event = format_event(body.to_json, target)
143
Sinatra::Application.settings.history[id] = event unless target == 'dashboards'
144
Sinatra::Application.settings.connections.each { |out| out << event }
0 commit comments