X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/c28643ce5bc8c7fd825e4eabbd915bad2b91dbd0..682c0fedde04fe6713539726494ec2db67ba5d2a:/components/temperature.c diff --git a/components/temperature.c b/components/temperature.c index 4e27a9d..bbec80b 100644 --- a/components/temperature.c +++ b/components/temperature.c @@ -44,6 +44,6 @@ } /* kelvin to celsius */ - return bprintf("%d", (temp.value - 273150000) / 1000000); + return bprintf("%d", (temp.value - 273150000) / 1E6); } #endif