/*
- * $Id: neighbors.cc,v 1.240 1998/08/27 06:28:57 wessels Exp $
+ * $Id: neighbors.cc,v 1.241 1998/09/04 21:40:27 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
if ((icp_opcode) header->opcode <= ICP_END)
p->icp.counts[header->opcode]++;
if (mem) {
- rtt = tvSubMsec(mem->start_ping, current_time);
- if (rtt)
- p->stats.rtt = intAverage(p->stats.rtt, rtt, n, RTT_AV_FACTOR);
+ if (mem->start_ping.tv_sec) {
+ rtt = tvSubMsec(mem->start_ping, current_time);
+ if (rtt)
+ p->stats.rtt = intAverage(p->stats.rtt, rtt, n, RTT_AV_FACTOR);
+ }
p->icp.version = (int) header->version;
}
}