This commit is contained in:
zippy 2006-11-08 20:10:14 +00:00
parent a8c7e51e6d
commit e331bf15f0

View file

@ -459,7 +459,7 @@ namespace Server
if( (++sample % sampleInterval) == 0 )
{
now = DateTime.Now;
m_CyclesPerSecond[m_CycleIndex++ % m_CyclesPerSecond.Length] =
m_CyclesPerSecond[Math.Max( 0, m_CycleIndex++ % m_CyclesPerSecond.Length )] =
ticksPerSecond / (now.Ticks - last.Ticks);
last = now;
}