mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +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];
|
||||
}
|
||||
|
||||
double m_lastosTerrainFlush = 0;
|
||||
public void osTerrainFlush()
|
||||
{
|
||||
double now = Util.GetTimeStamp();
|
||||
if(now - m_lastosTerrainFlush < 60)
|
||||
return;
|
||||
m_lastosTerrainFlush = now;
|
||||
|
||||
CheckThreatLevel(ThreatLevel.VeryLow, "osTerrainFlush");
|
||||
|
||||
ITerrainModule terrainModule = World.RequestModuleInterface<ITerrainModule>();
|
||||
|
||||
Reference in New Issue
Block a user