This commit is contained in:
gabime 2019-09-13 14:01:53 +03:00
parent b6388a15ff
commit 03e8c0f45c

View File

@ -878,7 +878,7 @@ public:
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override
{
auto delta = msg.time - last_message_time_;
auto delta = std::max(msg.time - last_message_time_, log_clock::duration::zero());
auto delta_units = std::chrono::duration_cast<DurationUnits>(delta);
last_message_time_ = msg.time;
ScopedPadder p(6, padinfo_, dest);