From e8ed9e5a787c7a6ca13552e211dd32c039717829 Mon Sep 17 00:00:00 2001 From: Niko Ehrenfeuchter <nikolaus.ehrenfeuchter@unibas.ch> Date: Tue, 13 Mar 2018 15:44:39 +0100 Subject: [PATCH] Minor changes in logging and docstring. --- ATxCommon/Monitoring/Cpu.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ATxCommon/Monitoring/Cpu.cs b/ATxCommon/Monitoring/Cpu.cs index 71aeb85..e9cbaa5 100644 --- a/ATxCommon/Monitoring/Cpu.cs +++ b/ATxCommon/Monitoring/Cpu.cs @@ -10,7 +10,7 @@ namespace ATxCommon.Monitoring { /// <summary> /// CPU load monitoring class, constantly checking the current load at the given <see - /// cref="Interval"/> using a separate timer (thus running in its own thread). + /// cref="Interval"/> in a separate (timer-based) thread. /// /// The load is determined using a <see cref="PerformanceCounter"/>, and is compared against /// a configurable <see cref="Limit"/>. If the load changes from below the limit to above, a @@ -117,8 +117,8 @@ namespace ATxCommon.Monitoring _probation = 40; Log.Debug("Initializing CPU monitoring..."); try { - _cpuCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total"); Log.Debug("CPU monitoring initializing PerformanceCounter (takes one second)..."); + _cpuCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total"); _cpuCounter.NextValue(); Thread.Sleep(1000); var curLoad = _cpuCounter.NextValue(); -- GitLab