fixed displaying of the fahrenheit temperature in the main
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 20 Jan 2013 19:14:32 +0000 (19:14 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 20 Jan 2013 19:14:32 +0000 (19:14 +0000)
   window.

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;