X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/ec5c35ec9f23254f09e734d0c1880559774dfa52..7fe240856eef7b56d8ca0b57fd5642dbdc5b89b1:/components/temperature.c?ds=sidebyside 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