mark the ping datapoint before actually sending it, for those instances where a reply can be sent back faster than the ACK of the send

This commit is contained in:
jrandom
2004-04-30 06:58:42 +00:00
committed by zzz
parent 86d55b32a6
commit f7212112b8

View File

@@ -84,8 +84,8 @@ class ClientEngine {
/** fire off a new ping */
private void doSend() {
long now = Clock.getInstance().now();
_heartbeat.sendPing(_data.getConfig().getPeer(), _id, now, _data.getConfig().getSendSize());
_data.addPing(now);
_heartbeat.sendPing(_data.getConfig().getPeer(), _id, now, _data.getConfig().getSendSize());
}
/** our actual heartbeat pumper - this drives the test */