Changeset 5800 in orxonox.OLD for branches/network/src/lib/network/connection_monitor.cc
- Timestamp:
- Nov 27, 2005, 7:05:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/connection_monitor.cc
r5798 r5800 88 88 /*Update the lifetime Variables*/ 89 89 totalReceivedPackets ++; 90 averageDatarate = totalReceivedPackets/(currentPacketTick - startTime); 90 float timeDiff = this->currentPacketTick - this->startTime; 91 if( timeDiff != 0.0f ) 92 averageDatarate = totalReceivedPackets/timeDiff; 91 93 92 94 /*Preparefor the next Packet*/ … … 134 136 // PRINT(0)("Total lost packets:",totalLostPackets); 135 137 // PRINT(0)("Packetloss [%] :\n",totalPacketloss); 136 // 138 // 137 139 // PRINT(0)("Current datarate :\n",currentDatarate); 138 140 // PRINT(0)("Delays of the last few packets :\n"); 139 141 // for(int i=1 ;i <= packetToAverage-1;i++) 140 142 // PRINT(0)("%i ",lastFewDelays[i]); 141 // 143 // 142 144 // PRINT(0)("============================================\n"); 143 145
Note: See TracChangeset
for help on using the changeset viewer.