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.ghosts
parent
12f50a2798
commit
31b92f0217
|
@ -103,8 +103,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
"region get",
|
"region get",
|
||||||
"Set control information for the currently selected region.",
|
"Set control information for the currently selected region.",
|
||||||
"Currently, the following parameters can be set:\n"
|
"Currently, the following parameters can be set:\n"
|
||||||
+ "agent-limit <int> - Current root agent limit.\n"
|
+ "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.",
|
+ "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);
|
HandleRegionSet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -224,6 +225,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
MainConsole.Instance.OutputFormat(
|
MainConsole.Instance.OutputFormat(
|
||||||
"{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name);
|
"{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rs.Save();
|
||||||
}
|
}
|
||||||
else if (param == "max-agent-limit")
|
else if (param == "max-agent-limit")
|
||||||
{
|
{
|
||||||
|
@ -244,6 +247,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
|
||||||
MainConsole.Instance.OutputFormat(
|
MainConsole.Instance.OutputFormat(
|
||||||
"Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name);
|
"Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rs.Save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue