From 3f4fc88aa35648feb66eb6ea3b115736080ccbb8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Sun, 20 Jan 2013 19:14:32 +0000 Subject: [PATCH] fixed displaying of the fahrenheit temperature in the main window. --- src/lib/psensor.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.7.4