[5/6] batctl: Readd ping interval after each loop
Commit Message
The option -i for ping had no visible effect. We can simply change it
back to the old behaviour from battool times.
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
---
batctl/ping.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
@@ -292,9 +292,8 @@ int ping(char *mesh_iface, int argc, char **argv)
}
sleep:
- if ((tv.tv_sec != 0) || (tv.tv_usec != 0))
- select(0, NULL, NULL, NULL, &tv);
-
+ if (loop_interval > 0)
+ sleep(loop_interval);
}
if (packets_out == 0)