(An alternate solution is to correct https://github.com/traviscross/mtr/blob/master/ui/net.c#L319, but that would potentially break workflows for users, so this is likely a more acceptable fix)
x <pos> <seqnum>
pingline:
-p <pos> <pingtime (ms)> <seqnum>
+p <pos> <pingtime (usec)> <seqnum>
dnsline:
d <pos> <hostname>
void display_rawping(
struct mtr_ctl *ctl,
int host,
- int msec,
+ int usec,
int seq)
{
if (ctl->DisplayMode == DisplayRaw)
- raw_rawping(ctl, host, msec, seq);
+ raw_rawping(ctl, host, usec, seq);
}
extern void display_rawping(
struct mtr_ctl *ctl,
int hostnum,
- int msec,
+ int usec,
int seq);
extern void display_rawhost(
struct mtr_ctl *ctl,
void raw_rawping(
struct mtr_ctl *ctl,
int host,
- int msec,
+ int usec,
int seq)
{
static int havename[MaxHost];
printf("d %d %s\n", host, name);
}
}
- printf("p %d %d %d\n", host, msec, seq);
+ printf("p %d %d %d\n", host, usec, seq);
fflush(stdout);
}
extern void raw_rawping(
struct mtr_ctl *ctl,
int host,
- int msec,
+ int usec,
int seq);
extern void raw_rawhost(
struct mtr_ctl *ctl,