Eco tweaks

This commit is contained in:
Serge
2023-05-11 10:52:40 +02:00
parent 22f136fe9e
commit 97c97e8e19
4 changed files with 23 additions and 20 deletions

View File

@@ -81,9 +81,9 @@ public static class HardwareControl
cpuTemp = ct.NextValue() - 273;
}
}
catch
catch (Exception ex)
{
Debug.WriteLine("Failed reading CPU temp");
Debug.WriteLine("Failed reading CPU temp :" + ex.Message);
}
try
@@ -94,8 +94,7 @@ public static class HardwareControl
catch (Exception ex)
{
gpuTemp = -1;
Debug.WriteLine("Failed reading GPU temp");
Debug.WriteLine(ex.ToString());
Debug.WriteLine("Failed reading GPU temp :" + ex.Message);
}
if (gpuTemp is null || gpuTemp < 0)