diff --git a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm index 8594dd5cb2..ee976c0d5f 100644 --- a/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm +++ b/luci-app-openmptcprouter/luasrc/view/openmptcprouter/wanstatus.htm @@ -132,7 +132,12 @@ } 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 += "
"; } if (mArray.openmptcprouter.uptime) diff --git a/mptcp/files/etc/init.d/mptcp b/mptcp/files/etc/init.d/mptcp index 09a99bf731..64a1cd6628 100755 --- a/mptcp/files/etc/init.d/mptcp +++ b/mptcp/files/etc/init.d/mptcp @@ -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))