diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | 10 |
2 files changed, 6 insertions, 12 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 48ae4ca..5428e5d 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -617,8 +617,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
617 | StatsReporter.OnSendStatsResult += SendSimStatsPackets; | 617 | StatsReporter.OnSendStatsResult += SendSimStatsPackets; |
618 | StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats; | 618 | StatsReporter.OnStatsIncorrect += m_sceneGraph.RecalculateStats; |
619 | 619 | ||
620 | StatsReporter.SetObjectCapacity(RegionInfo.ObjectCapacity); | ||
621 | |||
622 | // Old | 620 | // Old |
623 | /* | 621 | /* |
624 | m_simulatorVersion = simulatorVersion | 622 | m_simulatorVersion = simulatorVersion |
@@ -2468,7 +2466,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2468 | } | 2466 | } |
2469 | catch (Exception e) | 2467 | catch (Exception e) |
2470 | { | 2468 | { |
2471 | m_log.WarnFormat("[SCENE]: Problem casting object: {0}", e.Message); | 2469 | m_log.WarnFormat("[SCENE]: Problem casting object: " + e.ToString()); |
2472 | return false; | 2470 | return false; |
2473 | } | 2471 | } |
2474 | 2472 | ||
@@ -3466,7 +3464,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3466 | } | 3464 | } |
3467 | catch (Exception e) | 3465 | catch (Exception e) |
3468 | { | 3466 | { |
3469 | m_log.DebugFormat("[CONNECTION BEGIN]: Exception verifying presence {0}", e.Message); | 3467 | m_log.ErrorFormat("[CONNECTION BEGIN]: Exception verifying presence " + e.ToString()); |
3470 | return false; | 3468 | return false; |
3471 | } | 3469 | } |
3472 | 3470 | ||
@@ -3477,7 +3475,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3477 | } | 3475 | } |
3478 | catch (Exception e) | 3476 | catch (Exception e) |
3479 | { | 3477 | { |
3480 | m_log.DebugFormat("[CONNECTION BEGIN]: Exception authorizing user {0}", e.Message); | 3478 | m_log.ErrorFormat("[CONNECTION BEGIN]: Exception authorizing user " + e.ToString()); |
3481 | return false; | 3479 | return false; |
3482 | } | 3480 | } |
3483 | 3481 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs index fd23294..87dcdee 100644 --- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs | |||
@@ -108,7 +108,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
108 | private int m_activeScripts = 0; | 108 | private int m_activeScripts = 0; |
109 | private int m_scriptLinesPerSecond = 0; | 109 | private int m_scriptLinesPerSecond = 0; |
110 | 110 | ||
111 | private int objectCapacity = 45000; | 111 | private int m_objectCapacity = 45000; |
112 | 112 | ||
113 | private Scene m_scene; | 113 | private Scene m_scene; |
114 | 114 | ||
@@ -124,6 +124,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
124 | m_scene = scene; | 124 | m_scene = scene; |
125 | ReportingRegion = scene.RegionInfo; | 125 | ReportingRegion = scene.RegionInfo; |
126 | 126 | ||
127 | m_objectCapacity = scene.RegionInfo.ObjectCapacity; | ||
127 | m_report.AutoReset = true; | 128 | m_report.AutoReset = true; |
128 | m_report.Interval = statsUpdatesEveryMS; | 129 | m_report.Interval = statsUpdatesEveryMS; |
129 | m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat); | 130 | m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat); |
@@ -271,7 +272,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
271 | 272 | ||
272 | SimStats simStats | 273 | SimStats simStats |
273 | = new SimStats( | 274 | = new SimStats( |
274 | ReportingRegion.RegionLocX, ReportingRegion.RegionLocY, regionFlags, (uint)objectCapacity, rb, sb, m_scene.RegionInfo.originRegionID); | 275 | ReportingRegion.RegionLocX, ReportingRegion.RegionLocY, regionFlags, (uint)m_objectCapacity, rb, sb, m_scene.RegionInfo.originRegionID); |
275 | 276 | ||
276 | handlerSendStatResult = OnSendStatsResult; | 277 | handlerSendStatResult = OnSendStatsResult; |
277 | if (handlerSendStatResult != null) | 278 | if (handlerSendStatResult != null) |
@@ -435,11 +436,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
435 | m_activeScripts = count; | 436 | m_activeScripts = count; |
436 | } | 437 | } |
437 | 438 | ||
438 | public void SetObjectCapacity(int objects) | ||
439 | { | ||
440 | objectCapacity = objects; | ||
441 | } | ||
442 | |||
443 | /// <summary> | 439 | /// <summary> |
444 | /// This is for llGetRegionFPS | 440 | /// This is for llGetRegionFPS |
445 | /// </summary> | 441 | /// </summary> |