mwan3: fix wait conditions in mwan3track
Will only run when no events are pending. Signed-off-by: Aaron Goodman <aaronjg@stanford.edu> [ Update description and split into own commit ] Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
81e6a8fd3b
commit
94a25dbd92
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ main() {
|
|||
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
|
||||
|
||||
host_up_count=0
|
||||
if [ "${IFDOWN_EVENT}" -ne 0 ] && [ "${IFUP_EVENT}" -ne 0 ]; then
|
||||
if [ "${IFDOWN_EVENT}" -eq 0 ] && [ "${IFUP_EVENT}" -eq 0 ]; then
|
||||
sleep "${sleep_time}" &
|
||||
SLEEP_PID=$!
|
||||
wait
|
||||
|
|
Loading…
Reference in a new issue