Abbassata soglia log x invio realtime a 2 sec
This commit is contained in:
@@ -237,7 +237,7 @@ namespace Eqn.Sender.Controllers
|
||||
}
|
||||
messageList.Add(newMessage);
|
||||
}
|
||||
int bDelay = 400;
|
||||
int bDelay = 500;
|
||||
List<BatchResponse> listBResp = new List<BatchResponse>();
|
||||
if (numParall > 1)
|
||||
{
|
||||
@@ -297,7 +297,7 @@ namespace Eqn.Sender.Controllers
|
||||
answ = sb.ToString();
|
||||
}
|
||||
// se durata > 5sec --> loggo!
|
||||
if (sw.Elapsed.TotalSeconds > 5)
|
||||
if (sw.Elapsed.TotalSeconds > 2)
|
||||
{
|
||||
int numSend = elapsedTime.Count;
|
||||
string logVal = $"Warning soglia, durata: {sw.Elapsed.TotalSeconds:N3} sec | chiamate: {numCall} | batch: {numSend}";
|
||||
@@ -309,13 +309,6 @@ namespace Eqn.Sender.Controllers
|
||||
_logger.LogWarning($"{idx:00} | Start: {item.DtCreated:HH:mm:ss.ffffff} | bSize:{item.Size} | {item.TimeSec:N3} sec");
|
||||
idx++;
|
||||
}
|
||||
|
||||
//// calcolo numero esecuzioni
|
||||
//double minTime = elapsedTime.OrderBy(x => x).FirstOrDefault();
|
||||
//double avgTime = numSend > 0 ? elapsedTime.Sum(x => x) / numSend : 0;
|
||||
//double maxTime = elapsedTime.OrderByDescending(x => x).FirstOrDefault();
|
||||
//string stats = $"Batch processati: {numSend} | minTime: {minTime:N3} | avgTime: {avgTime:N3} | maxTime: {maxTime:N3}";
|
||||
//_logger.LogWarning(stats);
|
||||
}
|
||||
return answ;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Version>1.0.2405.1810</Version>
|
||||
<Version>1.0.2405.1811</Version>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<UserSecretsId>352f62a7-3b7d-40cd-ab21-b55a5fefae44</UserSecretsId>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<body>
|
||||
<i>EqnSender - Gestione invio messaggi piattaforma EQN</i>
|
||||
<h4>Versione: 1.0.2405.1810</h4>
|
||||
<h4>Versione: 1.0.2405.1811</h4>
|
||||
<br /> Note di rilascio:
|
||||
<ul>
|
||||
<li>
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.0.2405.1810
|
||||
1.0.2405.1811
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<item>
|
||||
<version>1.0.2405.1810</version>
|
||||
<version>1.0.2405.1811</version>
|
||||
<url>http://nexus.steamware.net/repository/SWS/EqnSender/stable/0/EqnSender.zip</url>
|
||||
<changelog>http://nexus.steamware.net/repository/SWS/EqnSender/stable/0/ChangeLog.html</changelog>
|
||||
<mandatory>false</mandatory>
|
||||
|
||||
Reference in New Issue
Block a user