From patchwork Sat Oct 30 15:00:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Eckelmann X-Patchwork-Id: 444 Return-Path: Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by open-mesh.org (Postfix) with SMTP id 38DEA154555 for ; Sat, 30 Oct 2010 16:59:48 +0200 (CEST) Received: (qmail invoked by alias); 30 Oct 2010 14:59:48 -0000 Received: from unknown (EHLO sven-desktop.lazhur.ath.cx) [89.246.213.145] by mail.gmx.net (mp039) with SMTP; 30 Oct 2010 16:59:48 +0200 X-Authenticated: #15668376 X-Provags-ID: V01U2FsdGVkX18XCrosE5MXwqUI7DhjNr+Qo04RXetP3CIVIoyVIE 0q3rpyj06JzLUH From: Sven Eckelmann To: b.a.t.m.a.n@lists.open-mesh.org Date: Sat, 30 Oct 2010 17:00:57 +0200 Message-Id: <1288450858-14753-5-git-send-email-sven.eckelmann@gmx.de> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1288450858-14753-1-git-send-email-sven.eckelmann@gmx.de> References: <1288450858-14753-1-git-send-email-sven.eckelmann@gmx.de> X-Y-GMX-Trusted: 0 Subject: [B.A.T.M.A.N.] [PATCH 5/6] batctl: Readd ping interval after each loop X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list 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: , X-List-Received-Date: Sat, 30 Oct 2010 14:59:48 -0000 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)