diff -ur mtr-0.23/Makefile.in mtr-0.24/Makefile.in --- mtr-0.23/Makefile.in Fri Oct 23 17:23:46 1998 +++ mtr-0.24/Makefile.in Sun Oct 25 16:53:20 1998 @@ -383,7 +383,7 @@ clean: clean-recursive clean-am distclean: distclean-recursive distclean-am - rm -f config.status + rm -f config.status *~ maintainer-clean: maintainer-clean-recursive maintainer-clean-am @echo "This command is intended for maintainers to use;" diff -ur mtr-0.23/configure mtr-0.24/configure --- mtr-0.23/configure Fri Oct 23 17:23:46 1998 +++ mtr-0.24/configure Sun Oct 25 16:51:25 1998 @@ -609,7 +609,7 @@ PACKAGE=mtr -VERSION=0.22 +VERSION=0.24 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } diff -ur mtr-0.23/configure.in mtr-0.24/configure.in --- mtr-0.23/configure.in Sat Oct 24 00:24:09 1998 +++ mtr-0.24/configure.in Sun Oct 25 16:49:34 1998 @@ -1,5 +1,5 @@ AC_INIT(mtr.c) -AM_INIT_AUTOMAKE(mtr, 0.23) +AM_INIT_AUTOMAKE(mtr, 0.24) AC_SUBST(GTK_OBJ) AC_SUBST(CURSES_OBJ) diff -ur mtr-0.23/mtr.8 mtr-0.24/mtr.8 --- mtr-0.23/mtr.8 Fri Oct 23 17:23:46 1998 +++ mtr-0.24/mtr.8 Sun Oct 25 16:56:07 1998 @@ -93,7 +93,7 @@ .B mtr generates a significant amount of network traffic. Using .B mtr -at to measure the quality of your network may result in decreased +to measure the quality of your network may result in decreased network performance. .TP diff -ur mtr-0.23/net.c mtr-0.24/net.c --- mtr-0.23/net.c Fri Oct 23 17:23:46 1998 +++ mtr-0.24/net.c Sun Oct 25 16:48:44 1998 @@ -348,7 +348,7 @@ #include #include -void net_send_batch() { +int net_send_batch() { static int n_unknown = 10; static int at; @@ -367,10 +367,11 @@ intervaltime.tv_usec = 1000000.0 * (wt - floor(wt)); at = 0; n_unknown = 10; - return; + return 1; } at++; + return 0; } diff -ur mtr-0.23/net.h mtr-0.24/net.h --- mtr-0.23/net.h Fri Oct 23 17:23:46 1998 +++ mtr-0.24/net.h Sun Oct 25 16:51:49 1998 @@ -32,7 +32,7 @@ int net_best(int at); int net_worst(int at); int net_avg(int at); -void net_send_batch(); +int net_send_batch(); void net_end_transit(); /* Added by Brian Casey, December 1997 bcasey@imagiware.com*/ diff -ur mtr-0.23/select.c mtr-0.24/select.c --- mtr-0.23/select.c Fri Oct 23 17:23:46 1998 +++ mtr-0.24/select.c Sun Oct 25 16:49:04 1998 @@ -89,8 +89,8 @@ lasttime = thistime; if(NumPing >= MaxPing && !Interactive) break; - NumPing++; - net_send_batch(); + if (net_send_batch()) + NumPing++; } selecttime.tv_usec = (thistime.tv_usec - lasttime.tv_usec); .