fixed displaying of the fahrenheit temperature in the main
[psensor.git] / src / lib / psensor.c
index fdc84f2..7b4921e 100644 (file)
@@ -233,6 +233,9 @@ psensor_value_to_str(unsigned int type, double value, int use_celcius)
 
        unit = psensor_type_to_unit_str(type, use_celcius);
 
+       if (!use_celcius)
+               value = celcius_to_fahrenheit(value);
+
        sprintf(str, "%.0f%s", value, unit);
 
        return str;