From 0f501629618fe1655b7ba653802056b5c32dbae6 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 14 May 2008 21:53:40 +0000 Subject: * Refactor additional stats collection common code into base opensim server * If extra stats not sent to the viewer are available on an opensim server, they are now uniformly accessible using the 'show stats' command --- OpenSim/Grid/AssetServer/Main.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'OpenSim/Grid/AssetServer') diff --git a/OpenSim/Grid/AssetServer/Main.cs b/OpenSim/Grid/AssetServer/Main.cs index 77e4628..1b1f9c7 100644 --- a/OpenSim/Grid/AssetServer/Main.cs +++ b/OpenSim/Grid/AssetServer/Main.cs @@ -98,7 +98,7 @@ namespace OpenSim.Grid.AssetServer m_log.Info("[ASSET]: Starting HTTP process"); m_httpServer = new BaseHttpServer(m_config.HttpPort); - StatsManager.StartCollectingAssetStats(); + m_stats = StatsManager.StartCollectingAssetStats(); AddHttpHandlers(); @@ -179,16 +179,7 @@ namespace OpenSim.Grid.AssetServer base.RunCmd(cmd, cmdparams); switch (cmd) - { - case "help": - m_console.Notice("stats - statistical information for this server"); - - break; - - case "stats": - m_console.Notice("STATS", Environment.NewLine + StatsManager.AssetStats.Report()); - break; - + { case "shutdown": m_console.Close(); Environment.Exit(0); -- cgit v1.1