feat: added GPU temperature indication. Supports both NVIDIA and AMD discrete GPUs

feat: immediately update sensors when opening GHelper window
This commit is contained in:
seerge
2023-03-13 23:28:56 +01:00
parent a39c084bdf
commit 2ec64bf8b5
7 changed files with 674 additions and 1 deletions

View File

@@ -653,6 +653,10 @@ namespace GHelper
if (HardwareMonitor.batteryDischarge > 0)
battery = "Discharging: " + Math.Round((decimal)HardwareMonitor.batteryDischarge, 1).ToString() + "W";
if (HardwareMonitor.gpuTemp != null) {
gpuTemp = $": {HardwareMonitor.gpuTemp}°C - ";
}
Program.settingsForm.BeginInvoke(delegate
{
Program.settingsForm.labelCPUFan.Text = "CPU" + cpuTemp + cpuFan;
@@ -680,6 +684,7 @@ namespace GHelper
aTimer.Interval = 300;
aTimer.Enabled = true;
RefreshSensors();
}
else
{