From: Jean-Philippe Orsini Date: Sun, 20 Jan 2013 19:14:32 +0000 (+0000) Subject: fixed displaying of the fahrenheit temperature in the main X-Git-Tag: v0.8.0.5~179 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=3f4fc88aa35648feb66eb6ea3b115736080ccbb8 fixed displaying of the fahrenheit temperature in the main window. --- diff --git a/src/lib/psensor.c b/src/lib/psensor.c index fdc84f2..7b4921e 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -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;