From 7726034368498b7fc7799c417734d6641cb87fe8 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sun, 7 Apr 2024 11:00:38 +0800 Subject: [PATCH] Rename to CommandTotals --- MyApp.ServiceInterface/BackgroundMqServices.cs | 2 +- MyApp.ServiceInterface/Data/AppConfig.cs | 2 +- MyApp.ServiceInterface/Data/Tasks.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MyApp.ServiceInterface/BackgroundMqServices.cs b/MyApp.ServiceInterface/BackgroundMqServices.cs index 07c49f8..517c0a7 100644 --- a/MyApp.ServiceInterface/BackgroundMqServices.cs +++ b/MyApp.ServiceInterface/BackgroundMqServices.cs @@ -121,7 +121,7 @@ public object Any(ViewCommands request) { LatestCommands = new(AppConfig.CommandResults), LatestFailed = new(AppConfig.CommandFailures), - Totals = new(AppConfig.CommandTotals.Values) + CommandTotals = new(AppConfig.CommandTotals.Values) }; if (request.Clear == true) { diff --git a/MyApp.ServiceInterface/Data/AppConfig.cs b/MyApp.ServiceInterface/Data/AppConfig.cs index d822b22..e550712 100644 --- a/MyApp.ServiceInterface/Data/AppConfig.cs +++ b/MyApp.ServiceInterface/Data/AppConfig.cs @@ -217,7 +217,7 @@ public bool HasUnreadAchievements(string? userName) public bool IsHuman(string? userName) => userName != null && GetModelUser(userName) == null; - public const int DefaultCapacity = 500; + public const int DefaultCapacity = 250; public ConcurrentQueue CommandResults { get; set; } = []; public ConcurrentQueue CommandFailures { get; set; } = new(); diff --git a/MyApp.ServiceInterface/Data/Tasks.cs b/MyApp.ServiceInterface/Data/Tasks.cs index bf61bcb..35ed236 100644 --- a/MyApp.ServiceInterface/Data/Tasks.cs +++ b/MyApp.ServiceInterface/Data/Tasks.cs @@ -118,8 +118,8 @@ public class ViewCommands : IGet, IReturn } public class ViewCommandsResponse { + public List CommandTotals { get; set; } public List LatestCommands { get; set; } public List LatestFailed { get; set; } - public List Totals { get; set; } public ResponseStatus? ResponseStatus { get; set; } } \ No newline at end of file