106 if(
false == configuration.enabled)
112 double tnow = yarp::os::SystemClock::nowSystem();
114 if((
true == reportedMissing) && (lastTickTime > 0))
116 yDebug() <<
"eth::EthMonitorPresence: BOARD" << configuration.name <<
"has shown after being lost for" << tnow - lastHeardTime <<
"sec";
117 reportedMissing =
false;
118 lastHeardTime = tnow;
121 if((
true == reportedMissing) && (configuration.periodmissingreport > 0))
124 if((tnow - lastMissingReportTime) >= configuration.periodmissingreport)
126 yDebug() <<
"eth::EthMonitorPresence: BOARD" << configuration.name <<
"has been silent for another" << tnow - lastMissingReportTime <<
"sec, for a total of" << tnow - lastHeardTime <<
"sec";
127 lastMissingReportTime = tnow;
134 double delta = tnow - lastTickTime;
136 if(delta > configuration.timeout)
138 yDebug() <<
"eth::EthMonitorPresence: BOARD" << configuration.name <<
"has been silent for" << delta <<
"sec (its timeout is" << configuration.timeout <<
"sec)";
141 lastMissingReportTime = tnow;
142 reportedMissing =
true;
143 lastHeardTime = lastTickTime;