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/UserServer/Main.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'OpenSim/Grid/UserServer') diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 7cd2431..00b7f76 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -88,7 +88,7 @@ namespace OpenSim.Grid.UserServer { Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); - StatsManager.StartCollectingUserStats(); + m_stats = StatsManager.StartCollectingUserStats(); m_log.Info("[REGION]: Establishing data connection"); m_userManager = new UserManager(); @@ -219,16 +219,11 @@ namespace OpenSim.Grid.UserServer { case "help": m_console.Notice("create user - create a new user"); - m_console.Notice("stats - statistical information for this server"); break; case "create": do_create(cmdparams[0]); - break; - - case "stats": - m_console.Notice(StatsManager.UserStats.Report()); - break; + break; case "test-inventory": // RestObjectPosterResponse> requester = new RestObjectPosterResponse>(); -- cgit v1.1