mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-10 16:30:50 +00:00
sensors: Also avoid conversion from double to float for Fahrenheit
Fixes: 868fd8d0 ("Avoid the conversions from double to float.")
This commit is contained in:
1 parent
43b6101bb0
commit
aa87b54d43
1 file changed
+1
-1
@@ -36,7 +36,7 @@ static void scale_value(double *value, const char **prefixstr);
|
||||
|
||||
static inline double deg_ctof(double cel)
|
||||
{
|
||||
return cel * (9.0F / 5.0F) + 32.0F;
|
||||
return cel * (9.0 / 5.0) + 32.0;
|
||||
}
|
||||
|
||||
void print_chip_raw(const sensors_chip_name *name)
|
||||
|
||||
Reference in new issue
Block a user