aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/LandData.cs2
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs7
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs14
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs3
4 files changed, 12 insertions, 14 deletions
diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs
index da541af..cfefe3e 100644
--- a/OpenSim/Framework/LandData.cs
+++ b/OpenSim/Framework/LandData.cs
@@ -620,7 +620,7 @@ namespace OpenSim.Framework
620 } 620 }
621 621
622 /// <summary> 622 /// <summary>
623 /// Number of meters^2 in the Simulator 623 /// Number of meters^2 that the land owner has in the Simulator
624 /// </summary> 624 /// </summary>
625 [XmlIgnore] 625 [XmlIgnore]
626 public int SimwideArea 626 public int SimwideArea
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index a8778b4..74eb114 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -5076,12 +5076,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5076 5076
5077 if (landData.SimwideArea > 0) 5077 if (landData.SimwideArea > 0)
5078 { 5078 {
5079 int simulatorCapacity = (int)((long)landData.SimwideArea * (long)m_scene.RegionInfo.ObjectCapacity * (long)m_scene.RegionInfo.RegionSettings.ObjectBonus 5079 updateMessage.SimWideMaxPrims = lo.GetSimulatorMaxPrimCount();
5080 / (long)m_scene.RegionInfo.RegionSizeX * m_scene.RegionInfo.RegionSizeY);
5081 // Never report more than sim total capacity
5082 if (simulatorCapacity > m_scene.RegionInfo.ObjectCapacity)
5083 simulatorCapacity = m_scene.RegionInfo.ObjectCapacity;
5084 updateMessage.SimWideMaxPrims = simulatorCapacity;
5085 } 5080 }
5086 else 5081 else
5087 { 5082 {
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 84a969b..95b576f 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -884,7 +884,7 @@ namespace OpenSim.Region.CoreModules.World.Land
884 } 884 }
885 } 885 }
886 886
887 public void FinalizeLandPrimCountUpdate() 887 private void FinalizeLandPrimCountUpdate()
888 { 888 {
889 //Get Simwide prim count for owner 889 //Get Simwide prim count for owner
890 Dictionary<UUID, List<LandObject>> landOwnersAndParcels = new Dictionary<UUID, List<LandObject>>(); 890 Dictionary<UUID, List<LandObject>> landOwnersAndParcels = new Dictionary<UUID, List<LandObject>>();
@@ -925,10 +925,10 @@ namespace OpenSim.Region.CoreModules.World.Land
925 925
926 public void EventManagerOnParcelPrimCountUpdate() 926 public void EventManagerOnParcelPrimCountUpdate()
927 { 927 {
928// m_log.DebugFormat( 928 //m_log.DebugFormat(
929// "[LAND MANAGEMENT MODULE]: Triggered EventManagerOnParcelPrimCountUpdate() for {0}", 929 // "[land management module]: triggered eventmanageronparcelprimcountupdate() for {0}",
930// m_scene.RegionInfo.RegionName); 930 // m_scene.RegionInfo.RegionName);
931 931
932 ResetOverMeRecords(); 932 ResetOverMeRecords();
933 EntityBase[] entities = m_scene.Entities.GetEntities(); 933 EntityBase[] entities = m_scene.Entities.GetEntities();
934 foreach (EntityBase obj in entities) 934 foreach (EntityBase obj in entities)
@@ -1843,7 +1843,7 @@ namespace OpenSim.Region.CoreModules.World.Land
1843 1843
1844 LLSDRemoteParcelResponse response = new LLSDRemoteParcelResponse(); 1844 LLSDRemoteParcelResponse response = new LLSDRemoteParcelResponse();
1845 response.parcel_id = parcelID; 1845 response.parcel_id = parcelID;
1846 m_log.DebugFormat("[LAND MANAGEMENT MODULE]: Got parcelID {0}", parcelID); 1846 //m_log.DebugFormat("[LAND MANAGEMENT MODULE]: Got parcelID {0}", parcelID);
1847 1847
1848 return LLSDHelpers.SerialiseLLSDReply(response); 1848 return LLSDHelpers.SerialiseLLSDReply(response);
1849 } 1849 }
@@ -2306,12 +2306,14 @@ namespace OpenSim.Region.CoreModules.World.Land
2306 cdl.AddRow("Other clean time", ld.OtherCleanTime); 2306 cdl.AddRow("Other clean time", ld.OtherCleanTime);
2307 2307
2308 cdl.AddRow("Max Prims", lo.GetParcelMaxPrimCount()); 2308 cdl.AddRow("Max Prims", lo.GetParcelMaxPrimCount());
2309 cdl.AddRow("Simwide Max Prims (owner)", lo.GetSimulatorMaxPrimCount());
2309 IPrimCounts pc = lo.PrimCounts; 2310 IPrimCounts pc = lo.PrimCounts;
2310 cdl.AddRow("Owner Prims", pc.Owner); 2311 cdl.AddRow("Owner Prims", pc.Owner);
2311 cdl.AddRow("Group Prims", pc.Group); 2312 cdl.AddRow("Group Prims", pc.Group);
2312 cdl.AddRow("Other Prims", pc.Others); 2313 cdl.AddRow("Other Prims", pc.Others);
2313 cdl.AddRow("Selected Prims", pc.Selected); 2314 cdl.AddRow("Selected Prims", pc.Selected);
2314 cdl.AddRow("Total Prims", pc.Total); 2315 cdl.AddRow("Total Prims", pc.Total);
2316 cdl.AddRow("SimWide Prims (owner)", pc.Simulator);
2315 2317
2316 cdl.AddRow("Music URL", ld.MusicURL); 2318 cdl.AddRow("Music URL", ld.MusicURL);
2317 cdl.AddRow("Obscure Music", ld.ObscureMusic); 2319 cdl.AddRow("Obscure Music", ld.ObscureMusic);
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index 45ad022..6b37dad 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -362,7 +362,8 @@ namespace OpenSim.Region.CoreModules.World.Land
362 int simMax = (int)( (long)LandData.SimwideArea 362 int simMax = (int)( (long)LandData.SimwideArea
363 * (long)m_scene.RegionInfo.ObjectCapacity 363 * (long)m_scene.RegionInfo.ObjectCapacity
364 / (long)(m_scene.RegionInfo.RegionSizeX * m_scene.RegionInfo.RegionSizeY) ); 364 / (long)(m_scene.RegionInfo.RegionSizeX * m_scene.RegionInfo.RegionSizeY) );
365 //m_log.DebugFormat("Simwide Area: {0}, Capacity {1}, SimMax {2}", LandData.SimwideArea, m_scene.RegionInfo.ObjectCapacity, simMax); 365 //m_log.DebugFormat("Simwide Area: {0}, Capacity {1}, SimMax {2}, SimWidePrims {3}",
366 // LandData.SimwideArea, m_scene.RegionInfo.ObjectCapacity, simMax, LandData.SimwidePrims);
366 return simMax; 367 return simMax;
367 } 368 }
368 } 369 }