void time change between gettime calls
parent
50433e089b
commit
6611e75a2b
|
@ -304,11 +304,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Int32 deltaMS = Util.EnvironmentTickCountSubtract(m_lastDrip);
|
Int32 now = Util.EnvironmentTickCount();
|
||||||
m_lastDrip = Util.EnvironmentTickCount();
|
Int32 deltaMS = now - m_lastDrip;
|
||||||
|
m_lastDrip = now;
|
||||||
|
|
||||||
// This can be 0 in the very unusual case that the timer wrapped
|
|
||||||
// It can be 0 if we try add tokens at a sub-tick rate
|
|
||||||
if (deltaMS <= 0)
|
if (deltaMS <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue