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:
parent
1f6bd672fe
commit
5f0461be8b
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue