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:
parent
9c55b0be85
commit
07b7ae39da
1 changed files with 6 additions and 1 deletions
|
@ -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) + " °";
|
||||
if (mArray.openmptcprouter.core_temp > 100000)
|
||||
{
|
||||
content += '<%:Core temp:%>' + " " + (mArray.openmptcprouter.core_temp / 10000).toFixed(1) + " °";
|
||||
} else {
|
||||
content += '<%:Core temp:%>' + " " + (mArray.openmptcprouter.core_temp / 1000).toFixed(1) + " °";
|
||||
}
|
||||
content += "<br />";
|
||||
}
|
||||
if (mArray.openmptcprouter.uptime)
|
||||
|
|
Loading…
Reference in a new issue