Skip to content

Commit

Permalink
Merge pull request #8 from 1271/master
Browse files Browse the repository at this point in the history
gpu sensors patch #7
  • Loading branch information
AlexGyver authored Dec 20, 2017
2 parents fa9d6cc + 6a2451e commit df63e5f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Binary file modified HardwareMonitorPlus/OpenHardwareMonitor.exe
Binary file not shown.
Binary file modified HardwareMonitorPlus/OpenHardwareMonitorLib.dll
Binary file not shown.
18 changes: 13 additions & 5 deletions openhardwaremonitor_source/GUI/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -665,20 +665,28 @@ public void timer_Tick(object sender, EventArgs e) {

var gpuMaxTemp = Math.Max(
(int)MaxTemp(computer, HardwareType.GpuNvidia),
(int)MaxTemp(computer, HardwareType.Mainboard)
(int)MaxTemp(computer, HardwareType.GpuAti)
);
var gpuMaxUsage = Math.Max(
(int)UsageInPercent(computer, HardwareType.GpuAti, "GPU Core"),
(int)UsageInPercent(computer, HardwareType.GpuNvidia, "GPU Core")
);
var gpuMaxMemory = Math.Max(
(int)UsageInPercent(computer, HardwareType.GpuAti, "GPU Memory"),
(int)UsageInPercent(computer, HardwareType.GpuNvidia, "GPU Memory")
);

List<float> data = new List<float>
List <float> data = new List<float>
{
(int)MaxTemp(computer, HardwareType.CPU),
gpuMaxTemp,
(int)MaxTemp(computer, HardwareType.Mainboard),
(int)MaxTemp(computer, HardwareType.HDD),
(int)UsageInPercent(computer, HardwareType.CPU, "CPU Total"),
(int)(UsageInPercent(computer, HardwareType.GpuAti, "GPU Core") + UsageInPercent(computer, HardwareType.GpuNvidia, "GPU Core")), // тут int
(int)gpuMaxUsage,
(int)UsageInPercent(computer, HardwareType.RAM, "Memory"),
(int)UsageInPercent(computer, HardwareType.GpuAti, "GPU Memory") + UsageInPercent(computer, HardwareType.GpuNvidia, "GPU Memory"), // тут float
(int)gpuMaxMemory,

// Right group.
settings.GetValue("nMaxFan", 100),
settings.GetValue("nMinFan", 20),
Expand Down

0 comments on commit df63e5f

Please sign in to comment.