From fea4b633d88da3c52d49dddeb2088ad61d95673f Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Mon, 12 Mar 2018 15:37:22 +0100 Subject: [PATCH] Fix resetting the probation counter. --- ATxCommon/Monitoring/Cpu.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ATxCommon/Monitoring/Cpu.cs b/ATxCommon/Monitoring/Cpu.cs index c30332f..62de16f 100644 --- a/ATxCommon/Monitoring/Cpu.cs +++ b/ATxCommon/Monitoring/Cpu.cs @@ -128,7 +128,7 @@ namespace ATxCommon.Monitoring Log.Trace("CPU load behaving well since {0} cycles.", _behaving); } else if (_behaving < 0) { Log.Warn("Integer wrap around happened, resetting probation counter!"); - _behaving = 0; + _behaving = _probation + 1; } } } -- GitLab