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

@@ -37,6 +37,7 @@ using log4net.Appender;
using log4net.Core;
using log4net.Repository;
using OpenSim.Framework.Console;
using OpenSim.Framework.Servers;
using OpenSim.Framework.Statistics;
using Timer=System.Timers.Timer;
@@ -458,9 +459,9 @@ namespace OpenSim.Framework.Servers
}
}
public string StatReport()
public string StatReport(OSHttpRequest httpRequest)
{
return m_stats.XReport();
return m_stats.XReport((DateTime.Now - m_startuptime).ToString() , m_version );
}
protected void RemovePIDFile()