Skip to content

Commit e1209b3

Browse files
author
Rune Ettrup
committed
Update smashing to support shorter message intervals
1 parent 2815bdf commit e1209b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dashing/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def stop_with_connection_closing
138138

139139
def send_event(id, body, target=nil)
140140
body[:id] = id
141-
body[:updatedAt] ||= Time.now.to_i
141+
body[:updatedAt] ||= (Time.now.to_f * 1000.0).to_i
142142
event = format_event(body.to_json, target)
143143
Sinatra::Application.settings.history[id] = event unless target == 'dashboards'
144144
Sinatra::Application.settings.connections.each { |out| out << event }

0 commit comments

Comments
 (0)