2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Avoid the conversions from double to float.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4719 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2007-08-26 20:41:03 +00:00
parent 4716a8c8f1
commit 868fd8d093

View File

@@ -27,7 +27,7 @@
#include "chips.h"
#include "lib/sensors.h"
static inline float deg_ctof(float cel)
static inline double deg_ctof(double cel)
{
return cel * (9.0F / 5.0F) + 32.0F;
}
@@ -135,7 +135,7 @@ static int sensors_get_label_size(const sensors_chip_name *name)
return max_size + 1;
}
static void print_temp_limits(float limit1, float limit2,
static void print_temp_limits(double limit1, double limit2,
const char *name1, const char *name2, int alarm)
{
if (fahrenheit) {