add the ID of the fan to the output

This commit is contained in:
Denis Ahrens
2013-01-31 18:43:03 +01:00
parent 95dfefbe13
commit afb554fc66

View File

@ -381,6 +381,9 @@ kern_return_t SMCPrintFans(void)
for (i = 0; i < totalFans; i++)
{
printf("\nFan #%d:\n", i);
sprintf(key, "F%dID", i);
SMCReadKey(key, &val);
printf(" Fan ID : %s\n", val.bytes+4);
sprintf(key, "F%dAc", i);
SMCReadKey(key, &val);
printf(" Actual speed : %.0f\n", _strtof(val.bytes, val.dataSize, 2));