Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5749 in orxonox.OLD for branches/network/src/lib


Ignore:
Timestamp:
Nov 24, 2005, 12:09:41 AM (19 years ago)
Author:
patrick
Message:

network: fixed a little runtime error in the ConnectionMonitor class (see mail)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/connection_monitor.cc

    r5726 r5749  
    103103    timeForLastFewPackets += lastFewDelays[i];
    104104
    105   currentDatarate = sizeOfLastFewPackets/timeForLastFewPackets;
     105  if( timeForLastFewPackets != 0)
     106    currentDatarate = sizeOfLastFewPackets/timeForLastFewPackets;
    106107}
    107108
Note: See TracChangeset for help on using the changeset viewer.