Use m_lastFrameTick instead of m_lastUpdate in Scene.GetHealth(). m_lastUpdate is no longer properly updated and is redundant anyway.
parent
135eeb45d6
commit
88d6c4ec0e
|
@ -4457,8 +4457,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
//
|
//
|
||||||
int health=1; // Start at 1, means we're up
|
int health=1; // Start at 1, means we're up
|
||||||
|
|
||||||
if ((Util.EnvironmentTickCountSubtract(m_lastUpdate)) < 1000)
|
if ((Util.EnvironmentTickCountSubtract(m_lastFrameTick)) < 1000)
|
||||||
health+=1;
|
health += 1;
|
||||||
else
|
else
|
||||||
return health;
|
return health;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue