diff --git a/lib/sysfs.c b/lib/sysfs.c index 39644f11..6e93b95c 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -139,7 +139,7 @@ static int sysfs_foreach_busdev(const char *bus_type, const char *sensors_sysfs_mount = "/sys"; static -int get_type_scaling(sensors_subfeature_type type) +double get_type_scaling(sensors_subfeature_type type) { /* Multipliers for second class subfeatures that need their own multiplier */ diff --git a/prog/sensors/test/data/laptop.json b/prog/sensors/test/data/laptop.json index 7ed072e2..81a3839b 100644 --- a/prog/sensors/test/data/laptop.json +++ b/prog/sensors/test/data/laptop.json @@ -388,7 +388,7 @@ "crit": { "quantity": "temperature", "unit": "°C", - "value": 93.85 + "value": 93.84999999999999 }, "input": { "quantity": "temperature", @@ -399,7 +399,7 @@ "max": { "quantity": "temperature", "unit": "°C", - "value": 89.85 + "value": 89.84999999999999 }, "min": { "quantity": "temperature",