-src/apple_sensors.c: Check for more sensor types.
src/battery.c: commend not working code.
general: build Darwin package
&value_int))
continue;
+ /* Found e.g. in the 1.5GHz PowerBooks */
if (strcmp (type, "temperature") == 0)
{
value_double = ((double) value_int) / 65536.0;
strncpy (type, "apple_temperature", 128);
}
+ else if (strcmp (type, "temp") == 0)
+ {
+ value_double = ((double) value_int) / 10.0;
+ strncpy (type, "apple_temperature", 128);
+ }
else if (strcmp (type, "fanspeed") == 0)
{
value_double = ((double) value_int) / 65536.0;
/* Leave this to the battery plugin. */
continue;
}
+ else if (strcmp (type, "adc") == 0)
+ {
+ value_double = ((double) value_int) / 10.0;
+ strncpy (type, "apple_temperature", 128);
+ }
else
{
DBG ("apple_sensors: Read unknown sensor type: %s",