Actually persist a changed console set agent-limit via "region set".

Unfortunately, it's not currently easy to do this with "max-agent-limit"
- this must be separately set as MaxAgents in region config if it's to persist over restarts.
mb-throttle-test
Justin Clark-Casey (justincc) 2014-10-31 22:32:35 +00:00 committed by Justin Clark-Casey
parent a05be7bd65
commit f084320976
1 changed files with 7 additions and 2 deletions

View File

@ -103,8 +103,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
"region get",
"Set control information for the currently selected region.",
"Currently, the following parameters can be set:\n"
+ "agent-limit <int> - Current root agent limit.\n"
+ "max-agent-limit <int> - Maximum root agent limit. agent-limit cannot exceed this.",
+ "agent-limit <int> - Current root agent limit. This is persisted over restart.\n"
+ "max-agent-limit <int> - Maximum root agent limit. agent-limit cannot exceed this."
+ " This is not persisted over restart - to set it every time you must add a MaxAgents entry to your regions file.",
HandleRegionSet);
}
@ -224,6 +225,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
MainConsole.Instance.OutputFormat(
"{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name);
}
rs.Save();
}
else if (param == "max-agent-limit")
{
@ -244,6 +247,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
MainConsole.Instance.OutputFormat(
"Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name);
}
rs.Save();
}
}