Update x timing gestione cehck tickets allarmi

This commit is contained in:
Samuele Locatelli
2023-04-08 11:11:32 +02:00
parent 7b65efea79
commit 23dc550e20
19 changed files with 24 additions and 23 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.2.2304.809</Version>
<Version>1.2.2304.811</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.2.2304.809</h4>
<h4>Version: 1.2.2304.811</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.2.2304.809
1.2.2304.811
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.2.2304.809</version>
<version>1.2.2304.811</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.ANALYZER/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.ANALYZER/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+3 -3
View File
@@ -121,8 +121,8 @@ namespace MP.MONO.DECODER
{
// incremento contatore
ticketNum++;
// faccio coda 0...999
ticketNum = ticketNum > 999 ? 1 : ticketNum;
// faccio coda 0...9999
ticketNum = ticketNum > 9999 ? 1 : ticketNum;
// accodo...
reqList.Enqueue(ticketNum);
// rendo ticket
@@ -147,7 +147,7 @@ namespace MP.MONO.DECODER
/// </summary>
/// <param name="ticket"></param>
/// <returns></returns>
public static bool checklTicket(int ticket)
public static bool checkTicket(int ticket)
{
bool fatto = false;
if (!isProcessing)
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.2.2304.809</Version>
<Version>1.2.2304.811</Version>
</PropertyGroup>
<ItemGroup>
+1
View File
@@ -52,6 +52,7 @@
-->
<!--<logger name="Microsoft.*" maxlevel="Info" final="true" />-->
<!--<logger name="*" minlevel="Debug" writeTo="consoleTarget" />-->
<logger name="*" minlevel="Info" writeTo="consoleTarget" />
<logger name="*" minlevel="Info" writeTo="fileTarget" />
</rules>
</nlog>
+4 -4
View File
@@ -951,19 +951,19 @@ async void AlarmsValPipe_EA_NewMessage(object? sender, EventArgs e)
{
myTicket = AlarmsBlinkManager.getTicket();
// attendo che NON ci siano altri processi in coda...
while (!AlarmsBlinkManager.checklTicket(myTicket))
while (!AlarmsBlinkManager.checkTicket(myTicket))
{
await Task.Delay(rand.Next(10, 30));
await Task.Delay(rand.Next(100, 130));
if (numTry % 2 == 0)
{
TimeSpan ts = DateTime.Now.Subtract(adesso);
Log.Info($"Ticket {myTicket} | total wait {ts.TotalMilliseconds:N3}ms");
Log.Debug($"Ticket {myTicket} | total wait {ts.TotalMilliseconds:N3}ms");
}
numTry++;
}
stopWatch.Start();
Log.Debug($"---------- INIZIO ticket {myTicket} ---------- ");
Log.Info($"---------- INIZIO ticket {myTicket} ---------- ");
// decodifico allarmi ricevuti
var alarmListRaw = JsonConvert.DeserializeObject<List<string>>(currArgs.newMessage);
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.2.2304.809</h4>
<h4>Version: 1.2.2304.811</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.2.2304.809
1.2.2304.811
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.2.2304.809</version>
<version>1.2.2304.811</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.DECODER/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.DECODER/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.2.2304.809</Version>
<Version>1.2.2304.811</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.2.2304.809</h4>
<h4>Version: 1.2.2304.811</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.2.2304.809
1.2.2304.811
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.2.2304.809</version>
<version>1.2.2304.811</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.SIM/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.SIM/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Platforms>AnyCPU;x86;x64</Platforms>
<Version>1.2.2304.809</Version>
<Version>1.2.2304.811</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>MAPO-MONO</i>
<h4>Version: 1.2.2304.809</h4>
<h4>Version: 1.2.2304.811</h4>
<br /> Release Note:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
1.2.2304.809
1.2.2304.811
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>1.2.2304.809</version>
<version>1.2.2304.811</version>
<url>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/MP.Mon.zip</url>
<changelog>http://nexus.steamware.net/repository/SWS/MP.MONO.UI/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>