Skip to content

Commit 03de879

Browse files
committed
Easing component heartbeats
1 parent cc029b1 commit 03de879

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main/mainworker.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11032,8 +11032,8 @@ void MainWorker::HeartbeatCheck()
1103211032
typedef std::map<std::string, time_t>::iterator hb_components;
1103311033
for (hb_components iterator = m_componentheartbeats.begin(); iterator != m_componentheartbeats.end(); iterator++) {
1103411034
double dif = difftime(now, iterator->second);
11035-
//_log.Log(LOG_STATUS, "%s last checkin %.2lf seconds ago", iterator->first.c_str(), dif);
11036-
if (dif > 20)
11035+
//_log.Log(LOG_STATUS, "%s last checking %.2lf seconds ago", iterator->first.c_str(), dif);
11036+
if (dif > 60)
1103711037
{
1103811038
_log.Log(LOG_ERROR, "%s thread seems to have ended unexpectedly", iterator->first.c_str());
1103911039
}
@@ -11052,7 +11052,7 @@ void MainWorker::HeartbeatCheck()
1105211052
{
1105311053
//Check Thread Timeout
1105411054
double diff = difftime(now, pHardware->m_LastHeartbeat);
11055-
//_log.Log(LOG_STATUS, "%d last checkin %.2lf seconds ago", iterator->first, dif);
11055+
//_log.Log(LOG_STATUS, "%d last checking %.2lf seconds ago", iterator->first, dif);
1105611056
if (diff > 60)
1105711057
{
1105811058
std::vector<std::vector<std::string> > result;

0 commit comments

Comments
 (0)