Update debug level + display IOC

This commit is contained in:
Samuele Locatelli
2026-05-04 17:19:28 +02:00
parent 974a804d72
commit ed77856a12
8 changed files with 8 additions and 73 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ namespace MP.Data.Services.Utils
})
.OrderByDescending(x => x.Value)
.ToList();
result.Add("Mach.Request (#)", pDestRequest);
result.Add("Mach.Request (#/h)", pDestRequest);
var pDestDuration = rawData.GroupBy(x => x.MachineId)
.Select(g => new StatDataDTO
@@ -215,7 +215,7 @@ namespace MP.Data.Services.Utils
})
.OrderByDescending(x => x.Value)
.ToList();
result.Add("Mach.Duration (tot ms)", pDestDuration);
result.Add("Mach.Duration (avg ms/h)", pDestDuration);
return result;
}
@@ -225,71 +225,6 @@ namespace MP.Data.Services.Utils
});
return result;
#if false
Dictionary<string, List<StatDataDTO>> result = new();
DateTime adesso = DateTime.Now;
var rawData = await GetFiltAsync(adesso.AddDays(-1), adesso);
// calcolo le varie statistiche...
var pDestRequest = rawData.GroupBy(x => x.Destination)
.Select(g => new StatDataDTO
{
Label = g.Key,
Value = g.Sum(x => x.RequestCount)
})
.OrderByDescending(x => x.Value)
.ToList();
result.Add("Dest.Request (#)", pDestRequest);
var pDestDuration = rawData.GroupBy(x => x.Destination)
.Select(g => new StatDataDTO
{
Label = g.Key,
Value = g.Sum(x => x.RequestCount * x.AvgDuration)
})
.OrderByDescending(x => x.Value)
.ToList();
result.Add("Dest.Duration (ms)", pDestDuration);
var pTypeRequest = rawData.GroupBy(x => x.Type)
.Select(g => new StatDataDTO
{
Label = g.Key,
Value = g.Sum(x => x.RequestCount)
})
.OrderByDescending(x => x.Value)
.ToList();
result.Add("Type.Request (#)", pTypeRequest);
var pTypeDuration = rawData.GroupBy(x => x.Type)
.Select(g => new StatDataDTO
{
Label = g.Key,
Value = g.Sum(x => x.RequestCount * x.AvgDuration)
})
.OrderByDescending(x => x.Value)
.ToList();
result.Add("Type.Duration (ms)", pTypeDuration);
//// calcolo le varie statistiche COMPOSTE...
//var pDestTypeRequest = rawData.GroupBy(x => new { x.Destination, x.Type })
// .Select(g => new StatDataDTO
// {
// Label = $"{g.Key.Destination}.{g.Key.Type}",
// Value = g.Sum(x => x.RequestCount)
// })
// .OrderByDescending(x => x.Value)
// .ToList();
//result.Add("DestType.Request (#)", pDestTypeRequest);
//var pDestTypeDuration = rawData.GroupBy(x => new { x.Destination, x.Type })
// .Select(g => new StatDataDTO
// {
// Label = $"{g.Key.Destination}.{g.Key.Type}",
// Value = g.Sum(x => x.RequestCount * x.AvgDuration)
// })
// .OrderByDescending(x => x.Value)
// .ToList();
//result.Add("DestType.Duration (ms)", pDestTypeDuration);
return result;
#endif
}
+1 -1
View File
@@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>8.16.2605.410</Version>
<Version>8.16.2605.415</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -1,6 +1,6 @@
<body>
<i>Modulo MP-IOC </i>
<h4>Versione: 8.16.2605.410</h4>
<h4>Versione: 8.16.2605.415</h4>
<br /> Note di rilascio:
<ul>
<li>
+1 -1
View File
@@ -1 +1 @@
8.16.2605.410
8.16.2605.415
+1 -1
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<item>
<version>8.16.2605.410</version>
<version>8.16.2605.415</version>
<url>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip</url>
<changelog>https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html</changelog>
<mandatory>false</mandatory>
+1 -1
View File
@@ -2,7 +2,7 @@
"DetailedErrors": true,
"Logging": {
"LogLevel": {
"Default": "Debug",
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning",
"Microsoft.EntityFrameworkCore.Infrastructure": "Warning",