Skip to content

Commit

Permalink
Use the CPU die temperature
Browse files Browse the repository at this point in the history
  • Loading branch information
hacker1024 committed Sep 14, 2020
1 parent 7743b50 commit ccff4ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion smc.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ int main(int argc, char* argv[])
break;
}
case package:
printTemperature(convertToCorrectScale(scale, SMCGetTemperature(SMC_CPU_PROXIMITY_TEMP)), rounding);
printTemperature(convertToCorrectScale(scale, SMCGetTemperature(SMC_CPU_DIE_TEMP)), rounding);
break;
}

Expand Down
2 changes: 1 addition & 1 deletion smc.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#define SMC_CPU_CORE_TEMP_PREFIX "TC"
#define SMC_CPU_CORE_TEMP_SUFFIX_OLD 'C'
#define SMC_CPU_CORE_TEMP_SUFFIX_NEW 'c'
#define SMC_CPU_PROXIMITY_TEMP "TC0P"
#define SMC_CPU_DIE_TEMP "TC0D"

typedef struct {
char major;
Expand Down

0 comments on commit ccff4ae

Please sign in to comment.