#include <stdlib.h>
#include <string.h>
+#include <locale.h>
+#include <libintl.h>
+#define _(str) gettext(str)
+
#include <sensors/sensors.h>
#include <sensors/error.h>
return "N/A"; /* should not be possible */
}
+
+const char *psensor_type_to_unit_str(unsigned int type)
+{
+ if (type & SENSOR_TYPE_TEMP)
+ return _("C");
+
+ if (type & SENSOR_TYPE_FAN)
+ return _("RPM");
+
+ return "N/A";
+}
+
void psensor_list_update_measures(struct psensor **sensors)
{
lmsensor_psensor_list_update(sensors);