update wake microstamp when receiving an RFD from an agent already in list

This commit is contained in:
Stephen Birarda 2013-05-06 12:51:43 -07:00
parent beca9cac8d
commit 9e5f446ba2

View file

@ -121,9 +121,11 @@ int main(int argc, const char * argv[])
} else if (packetData[0] == PACKET_HEADER_DOMAIN_RFD) {
// if this is a previous agent, and they are re-reporting for duty
// then we need to update the first receive time
Agent *refreshedAgent = agentList->agentWithAddress((sockaddr*) &agentLocalAddress);
refreshedAgent->setWakeMicrostamp(usecTimestampNow());
}
currentBufferPos = broadcastPacket + 1;
currentBufferPos = broadcastPacket + 2;
startPointer = currentBufferPos;
for (AgentList::iterator agent = agentList->begin(); agent != agentList->end(); agent++) {