From ed77856a12fbf671ebb3b3b01c797ff1ead987b3 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 4 May 2026 17:19:28 +0200 Subject: [PATCH] Update debug level + display IOC --- MP.Data/Services/Utils/StatsAggrService.cs | 4 +- MP.Data/Services/Utils/StatsDetailService.cs | 65 -------------------- MP.IOC/MP.IOC.csproj | 2 +- MP.IOC/Resources/ChangeLog.html | 2 +- MP.IOC/Resources/VersNum.txt | 2 +- MP.IOC/Resources/manifest.xml | 2 +- MP.IOC/appsettings.Development.json | 2 +- MP.IOC/appsettings.json | 2 +- 8 files changed, 8 insertions(+), 73 deletions(-) diff --git a/MP.Data/Services/Utils/StatsAggrService.cs b/MP.Data/Services/Utils/StatsAggrService.cs index cadf72cf..411b463c 100644 --- a/MP.Data/Services/Utils/StatsAggrService.cs +++ b/MP.Data/Services/Utils/StatsAggrService.cs @@ -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; } diff --git a/MP.Data/Services/Utils/StatsDetailService.cs b/MP.Data/Services/Utils/StatsDetailService.cs index 14c9dd53..1c3088e4 100644 --- a/MP.Data/Services/Utils/StatsDetailService.cs +++ b/MP.Data/Services/Utils/StatsDetailService.cs @@ -225,71 +225,6 @@ namespace MP.Data.Services.Utils }); return result; -#if false - Dictionary> 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 } diff --git a/MP.IOC/MP.IOC.csproj b/MP.IOC/MP.IOC.csproj index 9e5421b7..09b2a86c 100644 --- a/MP.IOC/MP.IOC.csproj +++ b/MP.IOC/MP.IOC.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 8.16.2605.410 + 8.16.2605.415 diff --git a/MP.IOC/Resources/ChangeLog.html b/MP.IOC/Resources/ChangeLog.html index 7d7c81b2..e967c5a4 100644 --- a/MP.IOC/Resources/ChangeLog.html +++ b/MP.IOC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MP-IOC -

Versione: 8.16.2605.410

+

Versione: 8.16.2605.415


Note di rilascio:
  • diff --git a/MP.IOC/Resources/VersNum.txt b/MP.IOC/Resources/VersNum.txt index 0cfba44d..c9e2711c 100644 --- a/MP.IOC/Resources/VersNum.txt +++ b/MP.IOC/Resources/VersNum.txt @@ -1 +1 @@ -8.16.2605.410 +8.16.2605.415 diff --git a/MP.IOC/Resources/manifest.xml b/MP.IOC/Resources/manifest.xml index 41b3917f..39fb4c88 100644 --- a/MP.IOC/Resources/manifest.xml +++ b/MP.IOC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 8.16.2605.410 + 8.16.2605.415 https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/MP.IOC.zip https://nexus.steamware.net/repository/SWS/MP-IOC/stable/LAST/ChangeLog.html false diff --git a/MP.IOC/appsettings.Development.json b/MP.IOC/appsettings.Development.json index b9395333..770d3e93 100644 --- a/MP.IOC/appsettings.Development.json +++ b/MP.IOC/appsettings.Development.json @@ -2,7 +2,7 @@ "DetailedErrors": true, "Logging": { "LogLevel": { - "Default": "Debug", + "Default": "Information", "Microsoft.AspNetCore": "Warning" } } diff --git a/MP.IOC/appsettings.json b/MP.IOC/appsettings.json index 93bee530..d7c5727c 100644 --- a/MP.IOC/appsettings.json +++ b/MP.IOC/appsettings.json @@ -1,7 +1,7 @@ { "Logging": { "LogLevel": { - "Default": "Debug", + "Default": "Information", "Microsoft.AspNetCore": "Warning", "Microsoft.EntityFrameworkCore.Database.Command": "Warning", "Microsoft.EntityFrameworkCore.Infrastructure": "Warning",