From b4cb45bb79619306b25c67c770165ab752aeb742 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Fri, 17 Apr 2009 21:48:48 +0000 Subject: Fixes Mantis # 3469. Thank you kindly, BlueWall, for a patch that: This patch adds extended status reporting with the url http://server:port/simstatusx/ [^] . The data is returned in json format as "text/plain" type. --- OpenSim/Framework/Statistics/BaseStatsCollector.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Framework/Statistics/BaseStatsCollector.cs') diff --git a/OpenSim/Framework/Statistics/BaseStatsCollector.cs b/OpenSim/Framework/Statistics/BaseStatsCollector.cs index 1e59983..a5ce8aa 100644 --- a/OpenSim/Framework/Statistics/BaseStatsCollector.cs +++ b/OpenSim/Framework/Statistics/BaseStatsCollector.cs @@ -28,6 +28,10 @@ using System; using System.Text; +using OpenMetaverse; +using OpenMetaverse.StructuredData; + + namespace OpenSim.Framework.Statistics { /// @@ -47,5 +51,10 @@ namespace OpenSim.Framework.Statistics return sb.ToString(); } + + public virtual string XReport() + { + return (string) Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0).ToString() ; + } } } -- cgit v1.1