Display existing statistic of how many http requests a server is making as server.network.HTTPRequestsMade in "show stats all"

This commit is contained in:
Justin Clark-Casey (justincc)
2013-06-19 20:48:12 +01:00
parent 8a86e29579
commit 84af1cab9b
3 changed files with 23 additions and 5 deletions

View File

@@ -27,6 +27,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using log4net;
@@ -247,6 +248,10 @@ namespace OpenSim.Framework.Monitoring
lock (m_samples)
{
// m_log.DebugFormat(
// "[STAT]: Samples for {0} are {1}",
// Name, string.Join(",", m_samples.Select(s => s.ToString()).ToArray()));
foreach (double s in m_samples)
{
if (lastSample != null)