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

Minor logging changes in CPU load monitoring

parent 123f5ea5
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ namespace ATxCommon.Monitoring
_interval = 250;
_limit = 25;
_probation = 40;
Log.Debug("Initializing CPU monitoring...");
Log.Info("Initializing CPU load monitoring...");
try {
Log.Debug("CPU monitoring initializing PerformanceCounter (takes one second)...");
_cpuCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total");
......@@ -165,7 +165,8 @@ namespace ATxCommon.Monitoring
} else if (_behaving > _probation) {
Log.Trace("CPU load behaving well since {0} cycles.", _behaving);
} else if (_behaving < 0) {
Log.Warn("Integer wrap around happened, resetting probation counter!");
Log.Info("CPU load monitoring: integer wrap around happened, " +
"resetting probation counter! (No reason to worry!)");
_behaving = _probation + 1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment