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 5fc9b48..81fa0bf 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,12 @@
 
 ** added AMD GPU usage sensor (Contribution from MestreLion).
 ** added support of sensors log interval.
+** psensor-server: protocole changes, API version incremented.
+** fixed cpu load when fahrenheit is enabled.
+
+* v07.0.5
+
+** fixed cpu load when fahrenheit is enabled.
 
 * v0.7.0.4
 
index 299af15..c23f9dd 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);