This commit is contained in:
seerge
2023-03-13 23:28:58 +01:00
parent a6d0dde4b0
commit e26d26b498

View File

@@ -19,8 +19,7 @@ public static class HardwareMonitor
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 class HardwareMonitor
batteryDischarge = cb.NextValue() / 1000;
cb.Dispose();
}
catch
} catch
{
Logger.WriteLine("Failed reading Battery discharge");
}