diff --git a/HardwareMonitor.cs b/HardwareMonitor.cs index 6ce45fd57..82d453b2a 100644 --- a/HardwareMonitor.cs +++ b/HardwareMonitor.cs @@ -19,8 +19,7 @@ public static void ReadSensors() var ct = new PerformanceCounter("Thermal Zone Information", "Temperature", @"\_TZ.THRM", true); cpuTemp = ct.NextValue() - 273; ct.Dispose(); - } - catch + } catch { Logger.WriteLine("Failed reading CPU temp"); } @@ -31,8 +30,7 @@ public static void ReadSensors() batteryDischarge = cb.NextValue() / 1000; cb.Dispose(); - } - catch + } catch { Logger.WriteLine("Failed reading Battery discharge"); }