Make NEW MAX ELAPSED AVERAGE trigger less sensitive

This commit is contained in:
ksuprynowicz 2022-12-16 08:52:40 +01:00
parent 61fa164791
commit cbf9c20331

View file

@ -441,7 +441,7 @@ public:
auto lastHeartbeatAge = (now > lastHeartbeat) ? now - lastHeartbeat : 0;
auto elapsedMovingAverage = _movingAverage.getAverage();
if (elapsedMovingAverage > _maxElapsedAverage) {
if (elapsedMovingAverage > _maxElapsedAverage * 1.1f) {
#if !defined(NDEBUG)
qCDebug(interfaceapp_deadlock) << "DEADLOCK WATCHDOG WARNING:"
<< "lastHeartbeatAge:" << lastHeartbeatAge