diff options
Diffstat (limited to 'src/osx/smc.cpp')
-rw-r--r-- | src/osx/smc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osx/smc.cpp b/src/osx/smc.cpp index 2482ae3..7386dbf 100644 --- a/src/osx/smc.cpp +++ b/src/osx/smc.cpp @@ -63,6 +63,11 @@ namespace Cpu { snprintf(key, 5, "TC%1dc", core); } result = SMCReadKey(key, &val); + if (result != kIOReturnSuccess) { + // try again with C + snprintf(key, 5, "TC%1dC", core); + result = SMCReadKey(key, &val); + } if (result == kIOReturnSuccess) { if (strcmp(val.dataType, DATATYPE_SP78) == 0) { // convert sp78 value to temperature |