mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
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:
@@ -346,7 +346,7 @@ main() {
|
|||||||
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
|
get_uptime > $MWAN3TRACK_STATUS_DIR/$INTERFACE/TIME
|
||||||
|
|
||||||
host_up_count=0
|
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 "${sleep_time}" &
|
||||||
SLEEP_PID=$!
|
SLEEP_PID=$!
|
||||||
wait
|
wait
|
||||||
|
|||||||
Reference in New Issue
Block a user