From 4792e6139a86f2dd93ced34582eef3599b804794 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Sat, 25 Apr 2009 05:06:01 +0000 Subject: Thanks Bluewall for Mantis #3519: a patch that adds simulator uptime and version to REST/json statistics reporting --- OpenSim/Framework/Servers/BaseOpenSimServer.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Framework/Servers/BaseOpenSimServer.cs') diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs index 45b45b2..483f8b6 100644 --- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs +++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs @@ -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() -- cgit v1.1