mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
limit osTerrainFlush calls to one per minute with silent ignore
This commit is contained in:
@@ -637,8 +637,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||||||
return World.Heightmap[x, y];
|
return World.Heightmap[x, y];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double m_lastosTerrainFlush = 0;
|
||||||
public void osTerrainFlush()
|
public void osTerrainFlush()
|
||||||
{
|
{
|
||||||
|
double now = Util.GetTimeStamp();
|
||||||
|
if(now - m_lastosTerrainFlush < 60)
|
||||||
|
return;
|
||||||
|
m_lastosTerrainFlush = now;
|
||||||
|
|
||||||
CheckThreatLevel(ThreatLevel.VeryLow, "osTerrainFlush");
|
CheckThreatLevel(ThreatLevel.VeryLow, "osTerrainFlush");
|
||||||
|
|
||||||
ITerrainModule terrainModule = World.RequestModuleInterface<ITerrainModule>();
|
ITerrainModule terrainModule = World.RequestModuleInterface<ITerrainModule>();
|
||||||
|
|||||||
Reference in New Issue
Block a user