Skip to content
Snippets Groups Projects
Commit b31ebbc3 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Set the log levels for performance monitors during object construction

Refers to #50
parent c6cce029
No related branches found
No related tags found
No related merge requests found
...@@ -324,6 +324,7 @@ namespace ATxService ...@@ -324,6 +324,7 @@ namespace ATxService
Interval = 250, Interval = 250,
Limit = _config.MaxCpuUsage, Limit = _config.MaxCpuUsage,
Probation = 16, Probation = 16,
LogPerformanceReadings = _config.MonitoringLogLevel,
Enabled = true Enabled = true
}; };
_cpu.LoadAboveLimit += OnLoadAboveLimit; _cpu.LoadAboveLimit += OnLoadAboveLimit;
...@@ -345,6 +346,7 @@ namespace ATxService ...@@ -345,6 +346,7 @@ namespace ATxService
Interval = 250, Interval = 250,
Limit = (float) _config.MaxDiskQueue / 1000, Limit = (float) _config.MaxDiskQueue / 1000,
Probation = 16, Probation = 16,
LogPerformanceReadings = _config.MonitoringLogLevel,
Enabled = true Enabled = true
}; };
_phyDisk.LoadAboveLimit += OnLoadAboveLimit; _phyDisk.LoadAboveLimit += OnLoadAboveLimit;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment