Use m_lastFrameTick instead of m_lastUpdate in Scene.GetHealth(). m_lastUpdate is no longer properly updated and is redundant anyway.
parent
40b9b519b8
commit
08b8ebcc7e
|
@ -4504,8 +4504,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