mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
mwan3: reset score to up+down on connected
Set the score value to the maximum value when the connected function is called. The same happens with a disconnected event, the score value is there set to zero. Suggested-by: Anna Tikhomirova <vamp@vampik.ru> Suggested-by: Maxim Mikityanskiy <maxtram95@gmail.com> Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -128,6 +128,7 @@ connected() {
|
||||
echo "online" > $MWAN3TRACK_STATUS_DIR/$INTERFACE/STATUS
|
||||
echo "0" > $MWAN3TRACK_STATUS_DIR/$INTERFACE/OFFLINE
|
||||
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/ONLINE
|
||||
score=$((down+up))
|
||||
host_up_count=0
|
||||
lost=0
|
||||
turn=0
|
||||
|
||||
Reference in New Issue
Block a user