changeset 13 | d32fc5f2e822 |
parent 7 | 9523a3322777 |
child 22 | e6832d4b89d2 |
1.1 --- a/Hardware/CPU/IntelCPU.cs Fri Jan 29 21:58:31 2010 +0000 1.2 +++ b/Hardware/CPU/IntelCPU.cs Sun Jan 31 19:30:00 2010 +0000 1.3 @@ -161,7 +161,7 @@ 1.4 for (int i = 0; i < coreTemperatures.Length; i++) { 1.5 if (WinRing0.RdmsrPx( 1.6 IA32_THERM_STATUS_MSR, ref eax, ref edx, 1.7 - (UIntPtr)(logicalProcessorsPerCore << i))) 1.8 + (UIntPtr)(1 << (int)(logicalProcessorsPerCore * i)))) 1.9 { 1.10 // if reading is valid 1.11 if ((eax & 0x80000000) != 0) {