/*
- * $Id: comm.cc,v 1.271 1998/06/10 05:47:09 wessels Exp $
+ * $Id: comm.cc,v 1.272 1998/06/26 04:23:33 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
int j;
incame = 0;
io_events = 0;
+#if !ALARM_UPDATES_TIME
+ getCurrentTime();
+#endif
if (theInIcpConnection > 0) {
icpHandleUdp(theInIcpConnection, &incame);
if (theInIcpConnection != theOutIcpConnection)
#define MAX_LOGIN_SZ 128
#define PEER_MAX_ADDRESSES 10
-#define RTT_AV_FACTOR 1000
+#define RTT_AV_FACTOR 50
/* flags for peer->mcast.flags */
#define PEER_COUNT_EVENT_PENDING 1
/*
- * $Id: neighbors.cc,v 1.222 1998/06/08 17:29:17 wessels Exp $
+ * $Id: neighbors.cc,v 1.223 1998/06/26 04:23:34 wessels Exp $
*
* DEBUG: section 15 Neighbor Routines
* AUTHOR: Harvest Derived
p->stats.counts[header->opcode]++;
if (mem) {
rtt = tvSubMsec(mem->start_ping, current_time);
- p->stats.rtt = intAverage(p->stats.rtt, rtt, n, RTT_AV_FACTOR);
+ if (rtt)
+ p->stats.rtt = intAverage(p->stats.rtt, rtt, n, RTT_AV_FACTOR);
p->icp_version = (int) header->version;
}
}