From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sven Eckelmann Date: Sat, 30 Oct 2010 17:00:57 +0200 Message-Id: <1288450858-14753-5-git-send-email-sven.eckelmann@gmx.de> In-Reply-To: <1288450858-14753-1-git-send-email-sven.eckelmann@gmx.de> References: <1288450858-14753-1-git-send-email-sven.eckelmann@gmx.de> Subject: [B.A.T.M.A.N.] [PATCH 5/6] batctl: Readd ping interval after each loop Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org 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 --- batctl/ping.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/batctl/ping.c b/batctl/ping.c index 1ed8fac..9963b24 100644 --- a/batctl/ping.c +++ b/batctl/ping.c @@ -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) -- 1.7.2.3