Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Rados13 committed Apr 26, 2024
1 parent eb8f34a commit e84f298
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/report_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ defmodule RecordingConverter.ReportParser do
alias RecordingConverter.Compositor

@delta_timestamp_milliseconds 100
@max_timestamp_value 2 ** 32 - 1

@type track_action :: {{:start | :end}, map(), non_neg_integer()}

Expand Down Expand Up @@ -108,7 +109,7 @@ defmodule RecordingConverter.ReportParser do

timestamp_difference =
if end_timestamp < start_timestamp do
end_timestamp + 2 ** 32 - 1 - start_timestamp
end_timestamp + @max_timestamp_value - start_timestamp
else
end_timestamp - start_timestamp
end
Expand Down

0 comments on commit e84f298

Please sign in to comment.