mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 23:31:13 -05:00
More stats polishing
fixed player specification for commands with multiple words
This commit is contained in:
@ -199,6 +199,12 @@ namespace IW4MAdmin
|
||||
var Status = TaskStatuses[i];
|
||||
if (Status.RequestedTask == null || Status.RequestedTask.Status == TaskStatus.RanToCompletion)
|
||||
{
|
||||
if (Status.ElapsedMillisecondsTime() > 60000)
|
||||
{
|
||||
Logger.WriteWarning($"Task took longer than 60 seconds to complete, killing");
|
||||
//Status.RequestedTask.
|
||||
}
|
||||
|
||||
Status.Update(new Task<bool>(() => { return (Status.Dependant as Server).ProcessUpdatesAsync(Status.GetToken()).Result; }));
|
||||
if (Status.RunAverage > 1000 + UPDATE_FREQUENCY)
|
||||
Logger.WriteWarning($"Update task average execution is longer than desired for {(Status.Dependant as Server)} [{Status.RunAverage}ms]");
|
||||
|
Reference in New Issue
Block a user