aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-31 22:32:35 +0000
committerJustin Clark-Casey2014-10-31 22:36:08 +0000
commitf0843209762127c25a16feb51f5494f560171b35 (patch)
tree95a6f71ea189dc866d84d0d2c0c9afd8074c8658 /OpenSim/Region/CoreModules
parentAdd "region set" console command. (diff)
downloadopensim-SC-f0843209762127c25a16feb51f5494f560171b35.zip
opensim-SC-f0843209762127c25a16feb51f5494f560171b35.tar.gz
opensim-SC-f0843209762127c25a16feb51f5494f560171b35.tar.bz2
opensim-SC-f0843209762127c25a16feb51f5494f560171b35.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r--OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
index b0caaf9..710c8da 100644
--- a/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Region/RegionCommandsModule.cs
@@ -103,8 +103,9 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
103 "region get", 103 "region get",
104 "Set control information for the currently selected region.", 104 "Set control information for the currently selected region.",
105 "Currently, the following parameters can be set:\n" 105 "Currently, the following parameters can be set:\n"
106 + "agent-limit <int> - Current root agent limit.\n" 106 + "agent-limit <int> - Current root agent limit. This is persisted over restart.\n"
107 + "max-agent-limit <int> - Maximum root agent limit. agent-limit cannot exceed this.", 107 + "max-agent-limit <int> - Maximum root agent limit. agent-limit cannot exceed this."
108 + " This is not persisted over restart - to set it every time you must add a MaxAgents entry to your regions file.",
108 HandleRegionSet); 109 HandleRegionSet);
109 } 110 }
110 111
@@ -224,6 +225,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
224 MainConsole.Instance.OutputFormat( 225 MainConsole.Instance.OutputFormat(
225 "{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name); 226 "{0} set to {1} in {2}", "agent-limit", newValue, m_scene.Name);
226 } 227 }
228
229 rs.Save();
227 } 230 }
228 else if (param == "max-agent-limit") 231 else if (param == "max-agent-limit")
229 { 232 {
@@ -244,6 +247,8 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands
244 MainConsole.Instance.OutputFormat( 247 MainConsole.Instance.OutputFormat(
245 "Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name); 248 "Reducing {0} to {1} in {2}", "agent-limit", rs.AgentLimit, m_scene.Name);
246 } 249 }
250
251 rs.Save();
247 } 252 }
248 } 253 }
249 254