From 65b2b6adf6937dc9a2167e899236509ab850b75b Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 13 Mar 2018 00:34:26 +0100 Subject: [PATCH] Consistent formatting of floats in log messages. --- 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 de4d955..df034c7 100644 --- a/ATxCommon/Monitoring/Cpu.cs +++ b/ATxCommon/Monitoring/Cpu.cs @@ -117,7 +117,7 @@ namespace ATxCommon.Monitoring if (_behaving > _probation) { // this means the load was considered as "low" before, so raise an event: OnLoadAboveLimit(); - Log.Debug("CPU load ({0}) violating limit ({1})!", _loadReadings[3], _limit); + Log.Debug("CPU load ({0:0.0}) violating limit ({1})!", _loadReadings[3], _limit); } else if (_behaving > 0) { // this means we were still in probation, so no need to trigger again... Log.Debug("Resetting behaving counter to 0 (was {0}).", _behaving); -- GitLab