Fix verifica lunghezza carattere dtEvent + aggiunto log al nCall2Log x chiamate IOB

This commit is contained in:
Samuele E. Locatelli
2017-09-14 10:44:03 +02:00
parent 16119b202d
commit 5941fec23c
3 changed files with 56 additions and 3 deletions
+14
View File
@@ -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";
}