diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/RegionStatsHandler.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/RegionStatsHandler.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/RegionStatsHandler.cs b/OpenSim/Region/Framework/Scenes/RegionStatsHandler.cs index 3b31281..bf58885 100644 --- a/OpenSim/Region/Framework/Scenes/RegionStatsHandler.cs +++ b/OpenSim/Region/Framework/Scenes/RegionStatsHandler.cs | |||
@@ -55,13 +55,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
55 | public string localZone = TimeZone.CurrentTimeZone.StandardName; | 55 | public string localZone = TimeZone.CurrentTimeZone.StandardName; |
56 | public TimeSpan utcOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); | 56 | public TimeSpan utcOffset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now); |
57 | 57 | ||
58 | public RegionStatsHandler(RegionInfo region_info) | 58 | public RegionStatsHandler(RegionInfo region_info) |
59 | : base("GET", "/" + Util.SHA1Hash(region_info.regionSecret), "RegionStats", "Region Statistics") | 59 | : base("GET", "/" + Util.SHA1Hash(region_info.regionSecret), "RegionStats", "Region Statistics") |
60 | { | 60 | { |
61 | regionInfo = region_info; | 61 | regionInfo = region_info; |
62 | osXStatsURI = Util.SHA1Hash(regionInfo.osSecret); | 62 | osXStatsURI = Util.SHA1Hash(regionInfo.osSecret); |
63 | } | 63 | } |
64 | 64 | ||
65 | protected override byte[] ProcessRequest( | 65 | protected override byte[] ProcessRequest( |
66 | string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) | 66 | string path, Stream request, IOSHttpRequest httpRequest, IOSHttpResponse httpResponse) |
67 | { | 67 | { |
@@ -72,7 +72,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
72 | { | 72 | { |
73 | get { return "text/plain"; } | 73 | get { return "text/plain"; } |
74 | } | 74 | } |
75 | 75 | ||
76 | private string Report() | 76 | private string Report() |
77 | { | 77 | { |
78 | OSDMap args = new OSDMap(30); | 78 | OSDMap args = new OSDMap(30); |
@@ -83,7 +83,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
83 | args["UxTime"] = OSD.FromInteger(Util.ToUnixTime(DateTime.Now)); | 83 | args["UxTime"] = OSD.FromInteger(Util.ToUnixTime(DateTime.Now)); |
84 | args["Memory"] = OSD.FromReal(Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0)); | 84 | args["Memory"] = OSD.FromReal(Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0)); |
85 | args["Version"] = OSD.FromString(VersionInfo.Version); | 85 | args["Version"] = OSD.FromString(VersionInfo.Version); |
86 | 86 | ||
87 | string strBuffer = ""; | 87 | string strBuffer = ""; |
88 | strBuffer = OSDParser.SerializeJsonString(args); | 88 | strBuffer = OSDParser.SerializeJsonString(args); |
89 | 89 | ||