Another small fix of the coreId calculation for multi-CPU systems.

This commit is contained in:
Michael Möller
2010-04-27 07:31:46 +00:00
parent 160f0bd783
commit e7c951b093

View File

@@ -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));