mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
Fix process usage measuring bug
This commit is contained in:
@@ -169,7 +169,8 @@ namespace Tgstation.Server.Host.System
|
||||
DefaultIOManager.BlockingTaskCreationOptions,
|
||||
TaskScheduler.Current);
|
||||
|
||||
MeasureProcessorTimeDelta();
|
||||
lastProcessorUsageTime = handle.TotalProcessorTime;
|
||||
lastProcessorMeasureTime = DateTimeOffset.UtcNow;
|
||||
|
||||
logger.LogTrace("Created process ID: {pid}", Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user