Fix verifica lunghezza carattere dtEvent + aggiunto log al nCall2Log x chiamate IOB
This commit is contained in:
@@ -10,6 +10,20 @@ namespace MP_IO.Controllers
|
||||
// GET: IOB (è un check alive)
|
||||
public string Index()
|
||||
{
|
||||
if (memLayer.ML.CRB("IOB_RedEnab"))
|
||||
{
|
||||
// conto la richiesta nel contatore REDIS
|
||||
long nCall = memLayer.ML.setRCntI("IOB_INDEX");
|
||||
//... se == nCall2Log scrivo su log e resetto
|
||||
long nCall2Log = memLayer.ML.cdvi("nCall2Log");
|
||||
if (nCall >= nCall2Log)
|
||||
{
|
||||
// loggo
|
||||
logger.lg.scriviLog(string.Format("IOB_INDEX: effettuate {0} call", nCall), tipoLog.INFO);
|
||||
// resetto!
|
||||
memLayer.ML.resetRCnt("IOB_INDEX");
|
||||
}
|
||||
}
|
||||
return "OK";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user