Skip to content

Commit

Permalink
sync (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 authored Mar 4, 2024
2 parents 06e5a94 + 23ce6c0 commit 70719f3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,12 @@
}
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)
Expand Down
2 changes: 1 addition & 1 deletion mptcp/files/etc/init.d/mptcp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ interface_macaddr_count() {

interface_max_metric() {
local config="$1"
if [ "$1" != "omrvpn" ] && [ "$1" != "omr6in4" ]; then
if [ "$1" != "omrvpn" ] && [ "$1" != "omr6in4" ] && [ "$1" != "lan" ]; then
config_get metric "$config" metric
if [ "$metric" = "$count" ]; then
count=$((count+1))
Expand Down

0 comments on commit 70719f3

Please sign in to comment.