Fix temperature reporting on OpenBSD
authordsp <dsp@2f30.org>
Fri, 1 Nov 2019 04:50:32 +0000 (22:50 -0600)
committerAaron Marcher <me@drkhsh.at>
Mon, 30 Nov 2020 20:23:48 +0000 (21:23 +0100)
commit3fc2872d1b3e62903a4af49326d42c97c11911d5
tree7f494fe20fb7954137beaf47c3b025644d216c74
parent3ac985eb0338773cfb1d1446fc0751f1f2afea94
Fix temperature reporting on OpenBSD

On OpenBSD although the formula is correct due to integer division a
temperature of for example 54 celsius appears as 5. this patch first
treats it as a floating point op before retaining the non decimal digits
components/temperature.c