Skip to content

Commit

Permalink
Logging: Always represent Epoch-based timestamps as integers
Browse files Browse the repository at this point in the history
Before this change, seconds were represented as floats.

(cherry picked from commit 29bab59)
  • Loading branch information
dumbbell authored and mergify-bot committed Aug 10, 2021
1 parent bc91083 commit d7a5e5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ format_time1(Timestamp, {rfc3339, Sep, Offset}) ->
{time_designator, Sep}],
calendar:system_time_to_rfc3339(Timestamp, Options);
format_time1(Timestamp, {epoch, secs, int}) ->
Timestamp / 1000000;
Timestamp div 1000000;
format_time1(Timestamp, {epoch, usecs, int}) ->
Timestamp;
format_time1(Timestamp, {epoch, secs, binary}) ->
Expand Down

0 comments on commit d7a5e5c

Please sign in to comment.