projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d3097b
)
fixed displaying of the fahrenheit temperature in the main
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 20 Jan 2013 19:14:32 +0000
(19:14 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Sun, 20 Jan 2013 19:14:32 +0000
(19:14 +0000)
window.
src/lib/psensor.c
patch
|
blob
|
history
diff --git
a/src/lib/psensor.c
b/src/lib/psensor.c
index
fdc84f2
..
7b4921e
100644
(file)
--- 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;