From e7c951b093fb19e5e58b930a81abe2d44552af25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20M=C3=B6ller?= Date: Tue, 27 Apr 2010 07:31:46 +0000 Subject: [PATCH] Another small fix of the coreId calculation for multi-CPU systems. --- Hardware/CPU/CPUID.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hardware/CPU/CPUID.cs b/Hardware/CPU/CPUID.cs index 177bfec..caea7df 100644 --- a/Hardware/CPU/CPUID.cs +++ b/Hardware/CPU/CPUID.cs @@ -194,7 +194,7 @@ namespace OpenHardwareMonitor.Hardware.CPU { processorId = (uint)(apicId >> (int)(coreMaskWith + threadMaskWith)); coreId = (uint)((apicId >> (int)(threadMaskWith)) - - (processorId << (int)(coreMaskWith + threadMaskWith))); + - (processorId << (int)(coreMaskWith))); threadId = apicId - (processorId << (int)(coreMaskWith + threadMaskWith)) - (coreId << (int)(threadMaskWith));