From afb897ae7ad829cddc232eeb47972cd8587dff0a Mon Sep 17 00:00:00 2001 From: Damien Guard Date: Mon, 15 Jul 2019 02:45:54 -0700 Subject: [PATCH] SMBIOS - Support cores and threads > 254 (#102) --- Hardware/SMBIOS.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Hardware/SMBIOS.cs b/Hardware/SMBIOS.cs index c38d92c..6091702 100644 --- a/Hardware/SMBIOS.cs +++ b/Hardware/SMBIOS.cs @@ -412,9 +412,9 @@ namespace OpenHardwareMonitor.Hardware { { this.ManufacturerName = GetString(0x07).Trim(); this.Version = GetString(0x10).Trim(); - this.CoreCount = GetByte(0x23); - this.CoreEnabled = GetByte(0x24); - this.ThreadCount = GetByte(0x25); + this.CoreCount = GetByte(0x23) != 255 ? GetByte(0x23) : GetWord(0x2A); + this.CoreEnabled = GetByte(0x24) != 255 ? GetByte(0x24) : GetWord(0x2C); + this.ThreadCount = GetByte(0x25) != 255 ? GetByte(0x25) : GetWord(0x2E); this.ExternalClock = GetWord(0x12); }