1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 19:41:51 +00:00

Fix Core Temp on some arch

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-03-04 17:44:17 +01:00
parent 9c55b0be85
commit 07b7ae39da

View file

@ -132,7 +132,12 @@ local statuslogo = ucic:get("openmptcprouter","settings","statuslogo") or "openm
}
if (mArray.openmptcprouter.core_temp)
{
content += '<%:Core temp:%>' + " " + (mArray.openmptcprouter.core_temp / 1000).toFixed(1) + " &#176;";
if (mArray.openmptcprouter.core_temp > 100000)
{
content += '<%:Core temp:%>' + " " + (mArray.openmptcprouter.core_temp / 10000).toFixed(1) + " &#176;";
} else {
content += '<%:Core temp:%>' + " " + (mArray.openmptcprouter.core_temp / 1000).toFixed(1) + " &#176;";
}
content += "<br />";
}
if (mArray.openmptcprouter.uptime)