From d7a5e5ca7549895b423a233a73002fc72887a374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Date: Mon, 9 Aug 2021 18:01:42 +0200 Subject: [PATCH] Logging: Always represent Epoch-based timestamps as integers Before this change, seconds were represented as floats. (cherry picked from commit 29bab5935cd2c49eca3efd46b8c7ccf7f66f9e2d) --- .../apps/rabbitmq_prelaunch/src/rabbit_logger_fmt_helpers.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/rabbit/apps/rabbitmq_prelaunch/src/rabbit_logger_fmt_helpers.erl b/deps/rabbit/apps/rabbitmq_prelaunch/src/rabbit_logger_fmt_helpers.erl index a637df0fd69f..a9b380bce1b2 100644 --- a/deps/rabbit/apps/rabbitmq_prelaunch/src/rabbit_logger_fmt_helpers.erl +++ b/deps/rabbit/apps/rabbitmq_prelaunch/src/rabbit_logger_fmt_helpers.erl @@ -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}) ->