Thanks Bluewall for Mantis #3519: a patch that adds simulator uptime and version to REST/json statistics reporting

This commit is contained in:
Dahlia Trimble
2009-04-25 05:06:01 +00:00
parent 917849eaac
commit 4792e6139a
6 changed files with 15 additions and 17 deletions

View File

@@ -810,13 +810,12 @@ namespace OpenSim
/// <summary>
/// Handler to supply the current extended status of this sim
/// </summary>
/// Currently prints the same a "show stats" plus the uptime of the sim
/// Sends the statistical data in a json serialization
public class XSimStatusHandler : IStreamedRequestHandler
{
OpenSimBase m_opensim;
public XSimStatusHandler(OpenSimBase sim)
// public XSimStatusHandler(BaseOpenSimServer sim)
{
m_opensim = sim;
}
@@ -824,7 +823,7 @@ namespace OpenSim
public byte[] Handle(string path, Stream request,
OSHttpRequest httpRequest, OSHttpResponse httpResponse)
{
return Encoding.UTF8.GetBytes(m_opensim.StatReport());
return Encoding.UTF8.GetBytes(m_opensim.StatReport(httpRequest));
}
public string ContentType