Update FLog: registra ANCHE un keepalive

This commit is contained in:
Samuele E. Locatelli
2019-01-07 19:11:58 +01:00
parent b55c202544
commit bbdb9fd2ba
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -690,6 +690,10 @@ namespace MapoDb
/// <returns></returns>
public static string processFluxLog(string idxMacchina, string flux, string valore, string dtEve, string dtCurr, int contatore)
{
// instanzio un nuovo oggetto MapoDb
MapoDb connDb = new MapoDb();
// scrivo keep alive!!! (se necessario, altrimenti è in cache...)
connDb.scriviKeepAlive(idxMacchina, DateTime.Now);
// 2017.09.14 trimmo eventualmente lo zero finale dalle date SE supera i millisecondi...
dtEve = dtEve.Length > 17 ? dtEve.Substring(0, 17) : dtEve;
dtCurr = dtCurr.Length > 17 ? dtCurr.Substring(0, 17) : dtCurr;