diff options
author | Melanie | 2011-04-25 23:18:32 +0100 |
---|---|---|
committer | Melanie | 2011-04-25 23:18:32 +0100 |
commit | 9bf5e94b70c045e32e259f282c693c0fcea514a2 (patch) | |
tree | 71a6b6029d2cc74cf34fd5e09719f39f9f7a9422 /OpenSim/Framework | |
parent | Merge branch 'master' into careminster-presence-refactor (diff) | |
parent | Made things consistent between LocalInventoryServiceConnector and RemoteXInve... (diff) | |
download | opensim-SC-9bf5e94b70c045e32e259f282c693c0fcea514a2.zip opensim-SC-9bf5e94b70c045e32e259f282c693c0fcea514a2.tar.gz opensim-SC-9bf5e94b70c045e32e259f282c693c0fcea514a2.tar.bz2 opensim-SC-9bf5e94b70c045e32e259f282c693c0fcea514a2.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Console/CommandConsole.cs | 4 | ||||
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 17 | ||||
-rw-r--r-- | OpenSim/Framework/Servers/VersionInfo.cs | 2 |
3 files changed, 19 insertions, 4 deletions
diff --git a/OpenSim/Framework/Console/CommandConsole.cs b/OpenSim/Framework/Console/CommandConsole.cs index 52bcd55..be36cf2 100644 --- a/OpenSim/Framework/Console/CommandConsole.cs +++ b/OpenSim/Framework/Console/CommandConsole.cs | |||
@@ -592,9 +592,7 @@ namespace OpenSim.Framework.Console | |||
592 | string line = ReadLine(m_defaultPrompt + "# ", true, true); | 592 | string line = ReadLine(m_defaultPrompt + "# ", true, true); |
593 | 593 | ||
594 | if (line != String.Empty) | 594 | if (line != String.Empty) |
595 | { | 595 | Output("Invalid command"); |
596 | m_log.Info("[CONSOLE] Invalid command"); | ||
597 | } | ||
598 | } | 596 | } |
599 | 597 | ||
600 | public void RunCommand(string cmd) | 598 | public void RunCommand(string cmd) |
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index d154bff..f4437e0 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -371,6 +371,7 @@ namespace OpenSim.Framework | |||
371 | private int m_physPrimMax = 0; | 371 | private int m_physPrimMax = 0; |
372 | private bool m_clampPrimSize = false; | 372 | private bool m_clampPrimSize = false; |
373 | private int m_objectCapacity = 0; | 373 | private int m_objectCapacity = 0; |
374 | private int m_agentCapacity = 0; | ||
374 | private string m_regionType = String.Empty; | 375 | private string m_regionType = String.Empty; |
375 | private RegionLightShareData m_windlight = new RegionLightShareData(); | 376 | private RegionLightShareData m_windlight = new RegionLightShareData(); |
376 | protected uint m_httpPort; | 377 | protected uint m_httpPort; |
@@ -549,6 +550,11 @@ namespace OpenSim.Framework | |||
549 | get { return m_objectCapacity; } | 550 | get { return m_objectCapacity; } |
550 | } | 551 | } |
551 | 552 | ||
553 | public int AgentCapacity | ||
554 | { | ||
555 | get { return m_agentCapacity; } | ||
556 | } | ||
557 | |||
552 | public byte AccessLevel | 558 | public byte AccessLevel |
553 | { | 559 | { |
554 | get { return (byte)Util.ConvertMaturityToAccessLevel((uint)RegionSettings.Maturity); } | 560 | get { return (byte)Util.ConvertMaturityToAccessLevel((uint)RegionSettings.Maturity); } |
@@ -827,6 +833,8 @@ namespace OpenSim.Framework | |||
827 | 833 | ||
828 | m_objectCapacity = config.GetInt("MaxPrims", 15000); | 834 | m_objectCapacity = config.GetInt("MaxPrims", 15000); |
829 | 835 | ||
836 | m_agentCapacity = config.GetInt("MaxAgents", 100); | ||
837 | |||
830 | 838 | ||
831 | // Multi-tenancy | 839 | // Multi-tenancy |
832 | // | 840 | // |
@@ -866,6 +874,9 @@ namespace OpenSim.Framework | |||
866 | if (m_objectCapacity != 0) | 874 | if (m_objectCapacity != 0) |
867 | config.Set("MaxPrims", m_objectCapacity); | 875 | config.Set("MaxPrims", m_objectCapacity); |
868 | 876 | ||
877 | if (m_agentCapacity != 0) | ||
878 | config.Set("MaxAgents", m_agentCapacity); | ||
879 | |||
869 | if (ScopeID != UUID.Zero) | 880 | if (ScopeID != UUID.Zero) |
870 | config.Set("ScopeID", ScopeID.ToString()); | 881 | config.Set("ScopeID", ScopeID.ToString()); |
871 | 882 | ||
@@ -952,6 +963,9 @@ namespace OpenSim.Framework | |||
952 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | 963 | configMember.addConfigurationOption("object_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, |
953 | "Max objects this sim will hold", m_objectCapacity.ToString(), true); | 964 | "Max objects this sim will hold", m_objectCapacity.ToString(), true); |
954 | 965 | ||
966 | configMember.addConfigurationOption("agent_capacity", ConfigurationOption.ConfigurationTypes.TYPE_INT32, | ||
967 | "Max avatars this sim will hold", m_agentCapacity.ToString(), true); | ||
968 | |||
955 | configMember.addConfigurationOption("scope_id", ConfigurationOption.ConfigurationTypes.TYPE_UUID, | 969 | configMember.addConfigurationOption("scope_id", ConfigurationOption.ConfigurationTypes.TYPE_UUID, |
956 | "Scope ID for this region", ScopeID.ToString(), true); | 970 | "Scope ID for this region", ScopeID.ToString(), true); |
957 | 971 | ||
@@ -1067,6 +1081,9 @@ namespace OpenSim.Framework | |||
1067 | case "object_capacity": | 1081 | case "object_capacity": |
1068 | m_objectCapacity = (int)configuration_result; | 1082 | m_objectCapacity = (int)configuration_result; |
1069 | break; | 1083 | break; |
1084 | case "agent_capacity": | ||
1085 | m_agentCapacity = (int)configuration_result; | ||
1086 | break; | ||
1070 | case "scope_id": | 1087 | case "scope_id": |
1071 | ScopeID = (UUID)configuration_result; | 1088 | ScopeID = (UUID)configuration_result; |
1072 | break; | 1089 | break; |
diff --git a/OpenSim/Framework/Servers/VersionInfo.cs b/OpenSim/Framework/Servers/VersionInfo.cs index ce6ecf8..24758e8 100644 --- a/OpenSim/Framework/Servers/VersionInfo.cs +++ b/OpenSim/Framework/Servers/VersionInfo.cs | |||
@@ -29,7 +29,7 @@ namespace OpenSim | |||
29 | { | 29 | { |
30 | public class VersionInfo | 30 | public class VersionInfo |
31 | { | 31 | { |
32 | private const string VERSION_NUMBER = "0.7.1"; | 32 | private const string VERSION_NUMBER = "0.7.2"; |
33 | private const Flavour VERSION_FLAVOUR = Flavour.Dev; | 33 | private const Flavour VERSION_FLAVOUR = Flavour.Dev; |
34 | 34 | ||
35 | public enum Flavour | 35 | public enum Flavour |