print heartbeat on heartbeat

This commit is contained in:
Lion Kortlepel 2021-07-15 01:04:06 +02:00
parent 71c2af1224
commit 7d4fd44dbf
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -26,9 +26,7 @@ void THeartbeatThread::operator()() {
std::this_thread::sleep_for(std::chrono::milliseconds(100)); std::this_thread::sleep_for(std::chrono::milliseconds(100));
continue; continue;
} }
#ifdef DEBUG debug("heartbeat (after " + std::to_string(std::chrono::duration_cast<std::chrono::seconds>(TimePassed).count()) + "s)");
debug("heartbeat @ " + std::to_string(std::chrono::duration_cast<std::chrono::seconds>(TimePassed).count()));
#endif // DEBUG
Last = Body; Last = Body;
LastNormalUpdateTime = Now; LastNormalUpdateTime = Now;