diff options
author | Teravus Ovares | 2007-12-12 13:36:53 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-12 13:36:53 +0000 |
commit | 2fd2e0285ccc54cfc5cd211841d59e20c1afeb2e (patch) | |
tree | 0ade013c65e1888592d7f839fdae8160ca1b0492 /OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |
parent | * Added some simstats to fill the simulator pane of the Statistics monitor. (diff) | |
download | opensim-SC_OLD-2fd2e0285ccc54cfc5cd211841d59e20c1afeb2e.zip opensim-SC_OLD-2fd2e0285ccc54cfc5cd211841d59e20c1afeb2e.tar.gz opensim-SC_OLD-2fd2e0285ccc54cfc5cd211841d59e20c1afeb2e.tar.bz2 opensim-SC_OLD-2fd2e0285ccc54cfc5cd211841d59e20c1afeb2e.tar.xz |
* Killed hard coded heart after stats update
* Did some voodoo math on the sim FPS to make the values 0-50
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SimStatsReporter.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs index 55bd6a7..b0f0e06 100644 --- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |||
@@ -59,7 +59,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
59 | statpack.Region = new SimStatsPacket.RegionBlock(); | 59 | statpack.Region = new SimStatsPacket.RegionBlock(); |
60 | statpack.Region.RegionX = ReportingRegion.RegionLocX; | 60 | statpack.Region.RegionX = ReportingRegion.RegionLocX; |
61 | statpack.Region.RegionY = ReportingRegion.RegionLocY; | 61 | statpack.Region.RegionY = ReportingRegion.RegionLocY; |
62 | statpack.Region.RegionFlags = (uint)21; | 62 | try |
63 | { | ||
64 | statpack.Region.RegionFlags = (uint)ReportingRegion.EstateSettings.regionFlags; | ||
65 | } | ||
66 | catch | ||
67 | { | ||
68 | statpack.Region.RegionFlags = (uint)0; | ||
69 | } | ||
63 | statpack.Region.ObjectCapacity = (uint)15000; | 70 | statpack.Region.ObjectCapacity = (uint)15000; |
64 | 71 | ||
65 | sb[0] = new SimStatsPacket.StatBlock(); | 72 | sb[0] = new SimStatsPacket.StatBlock(); |
@@ -68,7 +75,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
68 | 75 | ||
69 | sb[1] = new SimStatsPacket.StatBlock(); | 76 | sb[1] = new SimStatsPacket.StatBlock(); |
70 | sb[1].StatID = (uint)Stats.SimFPS; | 77 | sb[1].StatID = (uint)Stats.SimFPS; |
71 | sb[1].StatValue = (int)(m_fps); | 78 | sb[1].StatValue = (int)(m_fps * 5); |
72 | 79 | ||
73 | sb[2] = new SimStatsPacket.StatBlock(); | 80 | sb[2] = new SimStatsPacket.StatBlock(); |
74 | sb[2].StatID = (uint)Stats.PhysicsFPS; | 81 | sb[2].StatID = (uint)Stats.PhysicsFPS; |