Fix ordinamento metriche descending

This commit is contained in:
Samuele Locatelli
2026-04-29 12:29:04 +02:00
parent 2ccaa04ce1
commit 846f154c30
+3 -1
View File
@@ -127,7 +127,9 @@ namespace IOB_UT_NEXT
Dictionary<string, CallStats> snapshot;
lock (_serializationLock)
{
snapshot = _metrics.ToDictionary(
snapshot = _metrics
.OrderByDescending(x => x.Value.Count)
.ToDictionary(
kvp => kvp.Key,
kvp => new CallStats(kvp.Value.Count, kvp.Value.TotalElapsed));
}