Skip to content

Commit

Permalink
revert serverstatus commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mag-nus committed Mar 24, 2024
1 parent c8dbabc commit 434ccdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/ACE.Server/Command/Handlers/AdminStatCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ public static void HandleServerStatus(Session session, params string[] parameter

sb.Append($"Host Info: {Environment.OSVersion}, vCPU: {Environment.ProcessorCount}{'\n'}");

//ThreadPool.GetMinThreads(out var minWorkerThreads, out var minCompletionPortThreads);
//ThreadPool.GetMaxThreads(out var maxWorkerThreads, out var maxCompletionPortThreads);
//ThreadPool.GetAvailableThreads(out var availWorkerThreads, out var availCompletionPortThreads);
ThreadPool.GetMinThreads(out var minWorkerThreads, out var minCompletionPortThreads);
ThreadPool.GetMaxThreads(out var maxWorkerThreads, out var maxCompletionPortThreads);
ThreadPool.GetAvailableThreads(out var availWorkerThreads, out var availCompletionPortThreads);

//sb.Append($"ThreadPool Min: {minWorkerThreads} {minCompletionPortThreads}, Max: {maxWorkerThreads} {maxCompletionPortThreads}, Avail: {availWorkerThreads} {availCompletionPortThreads}, Current: {ThreadPool.ThreadCount}{'\n'}");
sb.Append($"ThreadPool Min: {minWorkerThreads} {minCompletionPortThreads}, Max: {maxWorkerThreads} {maxCompletionPortThreads}, Avail: {availWorkerThreads} {availCompletionPortThreads}, Current: {ThreadPool.ThreadCount}{'\n'}");

var runTime = DateTime.Now - proc.StartTime;
sb.Append($"Server Runtime: {(int)runTime.TotalHours}h {runTime.Minutes}m {runTime.Seconds}s{'\n'}");
Expand Down

0 comments on commit 434ccdc

Please sign in to comment.