added unit for fan
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 30 Apr 2012 09:46:30 +0000 (09:46 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 30 Apr 2012 09:46:30 +0000 (09:46 +0000)
src/lib/psensor.c

index ce44a56..5726b2d 100644 (file)
@@ -226,10 +226,12 @@ psensor_value_to_str(unsigned int type, double value, int use_celcius)
                        unit = "°F";
                        value = celcius_to_fahrenheit(value);
                }
+       else if (is_fan_type(type))
+               unit = _("RPM");
        else if (type & SENSOR_TYPE_CPU_USAGE)
-               unit = "%";
+               unit = _("%");
        else
-               unit = "";
+               unit = _("N/A");
 
        sprintf(str, "%.0f%s", value, unit);