From 0eaedcbbd60660e2ca54832bc6da70874498d931 Mon Sep 17 00:00:00 2001 From: sebastian-dev Date: Fri, 29 May 2020 11:34:52 +0200 Subject: [PATCH] AMD17, Bus Clock and Core 1 has the same Hardware id (#264) --- LibreHardwareMonitorLib/Hardware/Cpu/Amd17Cpu.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LibreHardwareMonitorLib/Hardware/Cpu/Amd17Cpu.cs b/LibreHardwareMonitorLib/Hardware/Cpu/Amd17Cpu.cs index 3cf4b45..f3967ed 100644 --- a/LibreHardwareMonitorLib/Hardware/Cpu/Amd17Cpu.cs +++ b/LibreHardwareMonitorLib/Hardware/Cpu/Amd17Cpu.cs @@ -117,8 +117,8 @@ namespace LibreHardwareMonitor.Hardware.CPU _ccdTemperatures = new Sensor[8]; // Hardcoded until there's a way to get max CCDs. _coreVoltage = new Sensor("Core (SVI2 TFN)", _hardware._sensorVoltage++, SensorType.Voltage, _hardware, _hardware._settings); _socVoltage = new Sensor("SoC (SVI2 TFN)", _hardware._sensorVoltage++, SensorType.Voltage, _hardware, _hardware._settings); - _busClock = new Sensor("Bus Speed", 0, SensorType.Clock, _hardware, _hardware._settings); - + _busClock = new Sensor("Bus Speed", _hardware._sensorClock++, SensorType.Clock, _hardware, _hardware._settings); + _hardware.ActivateSensor(_packagePower); } @@ -145,7 +145,7 @@ namespace LibreHardwareMonitor.Hardware.CPU // total_energy [31:0] DateTime sampleTime = DateTime.Now; Ring0.ReadMsr(MSR_PKG_ENERGY_STAT, out uint eax, out _); - + uint totalEnergy = eax; uint smuSvi0Tfn = 0;