mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-29 05:33:05 +01:00
add some loop statistics
This commit is contained in:
@@ -248,11 +248,7 @@ void GwSocketServer::sendToClients(const char *buf,int source){
|
|||||||
gwClientPtr client = clients[i];
|
gwClientPtr client = clients[i];
|
||||||
if (! client->hasClient()) continue;
|
if (! client->hasClient()) continue;
|
||||||
if ( client->client->connected() ) {
|
if ( client->client->connected() ) {
|
||||||
bool rt=client->enqueue((uint8_t*)buf,len);
|
client->enqueue((uint8_t*)buf,len);
|
||||||
if (!rt){
|
|
||||||
LOG_DEBUG(GwLog::DEBUG,"overflow in send to %s",client->remoteIp.c_str());
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1001,6 +1001,6 @@ void loop() {
|
|||||||
monitor.setTime(15);
|
monitor.setTime(15);
|
||||||
average.add(monitor.getMax());
|
average.add(monitor.getMax());
|
||||||
if (logger.isActive(GwLog::LOG)){
|
if (logger.isActive(GwLog::LOG)){
|
||||||
monitor.writeLog(10);
|
monitor.writeLog(6);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user