fixed cpu load when fahrenheit is enabled.
authorJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 24 Mar 2013 09:12:27 +0000 (09:12 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Sun, 24 Mar 2013 09:12:27 +0000 (09:12 +0000)
NEWS
src/lib/psensor.c

diff --git a/NEWS b/NEWS
index 24fcb32..0ee0e67 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+* v07.0.5
+
+** fixed cpu load when fahrenheit is enabled.
+
 * v0.7.0.4
 
 ** added Spanish translation from LP (Javier and Eduardo Alberto
index 7b4921e..4c3ad5c 100644 (file)
@@ -233,7 +233,7 @@ psensor_value_to_str(unsigned int type, double value, int use_celcius)
 
        unit = psensor_type_to_unit_str(type, use_celcius);
 
-       if (!use_celcius)
+       if (is_temp_type(type) && !use_celcius)
                value = celcius_to_fahrenheit(value);
 
        sprintf(str, "%.0f%s", value, unit);