9
0
Fork 0

net: ping: send PING packets with 1-second interval

Like standard ping does by default.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Wolfram Sang 2012-04-04 18:04:39 +02:00 committed by Sascha Hauer
parent c1a85010e3
commit 5ae013a9a9
1 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,8 @@ static int do_ping(int argc, char *argv[])
net_poll();
if (is_timeout(ping_start, 10 * SECOND)) {
if (is_timeout(ping_start, SECOND)) {
/* No answer, send another packet */
ping_start = get_time_ns();
ret = ping_send();
if (ret)