return type & SENSOR_TYPE_TEMP;
}
-int is_fan_type(unsigned int type)
-{
- return type & SENSOR_TYPE_FAN;
-}
-
char *
psensor_value_to_str(unsigned int type, double value, int use_celsius)
{
return "\302\260C";
else
return "\302\260F";
- } else if (is_fan_type(type)) {
+ } else if (type & SENSOR_TYPE_RPM) {
return _("RPM");
- } else if (type & SENSOR_TYPE_CPU_USAGE) {
+ } else if (type & SENSOR_TYPE_PERCENT) {
return _("%");
} else {
return _("N/A");