diff --git a/IOB-WIN-FORM/AdapterForm.cs b/IOB-WIN-FORM/AdapterForm.cs index a1137d03..e36ab976 100644 --- a/IOB-WIN-FORM/AdapterForm.cs +++ b/IOB-WIN-FORM/AdapterForm.cs @@ -169,7 +169,7 @@ namespace IOB_WIN_FORM #region Public Properties - public int alQueueLen + public long alQueueLen { set { @@ -442,7 +442,7 @@ namespace IOB_WIN_FORM public bool enableEditMes2Plc { get; set; } - public int evQueueLen + public long evQueueLen { set { @@ -467,7 +467,7 @@ namespace IOB_WIN_FORM } } - public int flQueueLen + public long flQueueLen { set { @@ -554,7 +554,7 @@ namespace IOB_WIN_FORM } } - public int msQueueLen + public long msQueueLen { set { @@ -601,7 +601,7 @@ namespace IOB_WIN_FORM } } - public int rtrQueueLen + public long rtrQueueLen { set { @@ -701,7 +701,7 @@ namespace IOB_WIN_FORM } } - public int ulQueueLen + public long ulQueueLen { set { @@ -1049,31 +1049,31 @@ namespace IOB_WIN_FORM /// protected DateTime logWatchWriteVeto { get; set; } = DateTime.Now; - protected int maxAlQueue { get; set; } + protected long maxAlQueue { get; set; } - protected int maxEvQueue { get; set; } + protected long maxEvQueue { get; set; } - protected int maxFlQueue { get; set; } + protected long maxFlQueue { get; set; } - protected int maxMsQueue { get; set; } + protected long maxMsQueue { get; set; } - protected int maxRwTrQueue { get; set; } + protected long maxRwTrQueue { get; set; } - protected int maxUlQueue { get; set; } + protected long maxUlQueue { get; set; } - protected int qAlLen { get; set; } + protected long qAlLen { get; set; } - protected int qEvLen { get; set; } + protected long qEvLen { get; set; } - protected int qFlLen { get; set; } + protected long qFlLen { get; set; } - protected int qMsLen { get; set; } + protected long qMsLen { get; set; } - protected int qRTrLen { get; set; } + protected long qRTrLen { get; set; } - protected int qUlLen { get; set; } + protected long qUlLen { get; set; } - protected int totQueue + protected long totQueue { get { diff --git a/IOB-WIN-FORM/Iob/PingWatchDog.cs b/IOB-WIN-FORM/Iob/PingWatchDog.cs index 21595418..865d5319 100644 --- a/IOB-WIN-FORM/Iob/PingWatchDog.cs +++ b/IOB-WIN-FORM/Iob/PingWatchDog.cs @@ -258,12 +258,12 @@ namespace IOB_WIN_FORM.Iob protected bool pingStatusOk() { bool answ = true; - int numVal = PingQueue.Count; + long numVal = PingQueue.Count; if (numVal > maxQueuePing / 2) { var listaValori = PingQueue.ToList(); - int numOk = listaValori.Where(x => x == "1").Count(); - int numKo = numVal - numOk; + long numOk = listaValori.Where(x => x == "1").Count(); + long numKo = numVal - numOk; answ = numOk >= numKo; lgTrace($"PING ok per: {numOk} > {numKo}"); }