Fix the deciKelvin to Celsius conversion on FreeBSD (#195)
Change from ceiled value to floored value to be consistent with the FreeBSD kernel https://svnweb.freebsd.org/base?view=revision&revision=300421
This commit is contained in:
parent
e09186fa19
commit
93576bccc3
@ -13,7 +13,7 @@
|
||||
#include <err.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
#define TZ_ZEROC 2732
|
||||
#define TZ_ZEROC 2731
|
||||
#define TZ_KELVTOC(x) (((x)-TZ_ZEROC) / 10), abs(((x)-TZ_ZEROC) % 10)
|
||||
#define TZ_AVG(x) ((x)-TZ_ZEROC) / 10
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user