lib/tracebin/events.rb in tracebin-0.0.10 vs lib/tracebin/events.rb in tracebin-0.0.11
- old
+ new
@@ -19,12 +19,12 @@
end
def data_hash
{
event_type: type,
- start: event[1],
- stop: event[2],
- duration: to_milliseconds(event[2] - event[1]),
+ start: time_to_string(event[1]),
+ stop: time_to_string(event[2]),
+ duration: milliseconds_between(event[2], event[1]),
data: select_data || event.last
}
end
end