single-pass update on the hardware sensors, should reduce CPU usage a bit
This commit is contained in:
@@ -188,9 +188,12 @@ public class Telemetry : IDisposable
|
||||
{
|
||||
RestartComputerIfNeeded();
|
||||
|
||||
cpuHw?.Update();
|
||||
gpuHw?.Update();
|
||||
memHw?.Update();
|
||||
//cpuHw?.Update();
|
||||
//gpuHw?.Update();
|
||||
//memHw?.Update();
|
||||
// Single-pass update: update ALL enabled hardware in one loop
|
||||
foreach (var hw in computer.Hardware)
|
||||
hw.Update();
|
||||
|
||||
float cpu = GetCpuLoadPercent();
|
||||
float cpuTemp = GetCpuTemperaturePercent();
|
||||
|
||||
Reference in New Issue
Block a user