add some loop statistics

This commit is contained in:
wellenvogel 2021-12-05 17:10:23 +01:00
parent c5b6de32a9
commit b089ae2a39
2 changed files with 2 additions and 6 deletions

View File

@ -248,13 +248,9 @@ void GwSocketServer::sendToClients(const char *buf,int source){
gwClientPtr client = clients[i];
if (! client->hasClient()) continue;
if ( client->client->connected() ) {
bool rt=client->enqueue((uint8_t*)buf,len);
if (!rt){
LOG_DEBUG(GwLog::DEBUG,"overflow in send to %s",client->remoteIp.c_str());
client->enqueue((uint8_t*)buf,len);
}
}
}
}
int GwSocketServer::numClients(){

View File

@ -1001,6 +1001,6 @@ void loop() {
monitor.setTime(15);
average.add(monitor.getMax());
if (logger.isActive(GwLog::LOG)){
monitor.writeLog(10);
monitor.writeLog(6);
}
}