- Fixed number of probes. Accidentally was counted per packet sent
instead of per round of packets.
source: ftp://ftp.bitwizard.nl/mtr/mtr-0.24.tar.gz
AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.23)
+AM_INIT_AUTOMAKE(mtr, 0.24)
AC_SUBST(GTK_OBJ)
AC_SUBST(CURSES_OBJ)
.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
#include <stdio.h>
#include <math.h>
-void net_send_batch() {
+int net_send_batch() {
static int n_unknown = 10;
static int at;
intervaltime.tv_usec = 1000000.0 * (wt - floor(wt));
at = 0;
n_unknown = 10;
- return;
+ return 1;
}
at++;
+ return 0;
}
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*/
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);