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: