diff --git a/IOB-WIN/IobMTC.cs b/IOB-WIN/IobMTC.cs
index f3d185f5..57b2f3f5 100644
--- a/IOB-WIN/IobMTC.cs
+++ b/IOB-WIN/IobMTC.cs
@@ -35,6 +35,14 @@ namespace IOB_WIN
///
protected bool hasReadItems = false;
///
+ /// Veto controllos tatus x log...
+ ///
+ protected DateTime vetoCheckStatus = DateTime.Now;
+ ///
+ /// Secondi standard x veto check status e log
+ ///
+ protected int vetoSeconds = 5;
+ ///
/// URL x salvataggio elenco dataItems MTC
///
protected string urlSaveDataItems
@@ -1039,11 +1047,13 @@ namespace IOB_WIN
// se ho run mode != auto --> manual
B_input += (1 << 4);
}
- // solo ogni 5 secondi
+ // solo se non ho veto check
DateTime adesso = DateTime.Now;
- if ((adesso.Second % 5) == 0)
+ if (vetoCheckStatus < adesso)
{
lgInfo($"Stato variabili: currRun: {currRun} | currExe: {currExe} | currUnOpStatus: {currUnOpStatus}");
+ // imposto veto per vetoSeconds...
+ vetoCheckStatus = adesso.AddSeconds(vetoSeconds);
}
#if false
diff --git a/Jenkinsfile b/Jenkinsfile
index ce9de0e8..c047dd45 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,7 +16,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
- withEnv(['NEXT_BUILD_NUMBER=566']) {
+ withEnv(['NEXT_BUILD_NUMBER=567']) {
// env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '2.6.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'MAPO-IOB-WIN'