Checkable#UpdateNextCheck(): allow to suppress next_check listeners

This commit is contained in:
Alexander A. Klimov 2024-06-20 17:57:23 +02:00
parent a13751d972
commit 3e6ce607a2
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ long Checkable::GetSchedulingOffset()
return m_SchedulingOffset;
}
void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin)
void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin, bool suppressEvents)
{
double interval;
@ -78,7 +78,7 @@ void Checkable::UpdateNextCheck(const MessageOrigin::Ptr& origin)
<< " (" << lastCheck << ") to next check time at "
<< Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", nextCheck) << " (" << nextCheck << ").";
SetNextCheck(nextCheck, false, origin);
SetNextCheck(nextCheck, suppressEvents, origin);
}
bool Checkable::HasBeenChecked() const

View File

@ -104,7 +104,7 @@ public:
long GetSchedulingOffset();
void SetSchedulingOffset(long offset);
void UpdateNextCheck(const MessageOrigin::Ptr& origin = nullptr);
void UpdateNextCheck(const MessageOrigin::Ptr& origin = nullptr, bool suppressEvents = false);
static String StateTypeToString(StateType type);