aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer/Main.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/UserServer/Main.cs')
-rw-r--r--OpenSim/Grid/UserServer/Main.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs
index 2650694..20828ba 100644
--- a/OpenSim/Grid/UserServer/Main.cs
+++ b/OpenSim/Grid/UserServer/Main.cs
@@ -46,9 +46,7 @@ namespace OpenSim.Grid.UserServer
46 46
47 public UserManager m_userManager; 47 public UserManager m_userManager;
48 public UserLoginService m_loginService; 48 public UserLoginService m_loginService;
49 public MessageServersConnector m_messagesService; 49 public MessageServersConnector m_messagesService;
50
51 protected UserStatsReporter m_stats;
52 50
53 private LogBase m_console; 51 private LogBase m_console;
54 private LLUUID m_lastCreatedUser = LLUUID.Random(); 52 private LLUUID m_lastCreatedUser = LLUUID.Random();
@@ -89,15 +87,15 @@ namespace OpenSim.Grid.UserServer
89 { 87 {
90 Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml"))); 88 Cfg = new UserConfig("USER SERVER", (Path.Combine(Util.configDir(), "UserServer_Config.xml")));
91 89
92 m_stats = new UserStatsReporter(); 90 StatsManager.StartCollectingUserStats();
93 91
94 MainLog.Instance.Verbose("REGION", "Establishing data connection"); 92 MainLog.Instance.Verbose("REGION", "Establishing data connection");
95 m_userManager = new UserManager(m_stats); 93 m_userManager = new UserManager();
96 m_userManager._config = Cfg; 94 m_userManager._config = Cfg;
97 m_userManager.AddPlugin(Cfg.DatabaseProvider); 95 m_userManager.AddPlugin(Cfg.DatabaseProvider);
98 96
99 m_loginService = new UserLoginService( 97 m_loginService = new UserLoginService(
100 m_userManager, new LibraryRootFolder(), m_stats, Cfg, Cfg.DefaultStartupMsg); 98 m_userManager, new LibraryRootFolder(), Cfg, Cfg.DefaultStartupMsg);
101 99
102 m_messagesService = new MessageServersConnector(MainLog.Instance); 100 m_messagesService = new MessageServersConnector(MainLog.Instance);
103 101
@@ -199,7 +197,7 @@ namespace OpenSim.Grid.UserServer
199 break; 197 break;
200 198
201 case "stats": 199 case "stats":
202 MainLog.Instance.Notice("STATS", Environment.NewLine + m_stats.Report()); 200 MainLog.Instance.Notice("STATS", Environment.NewLine + StatsManager.UserStats.Report());
203 break; 201 break;
204 202
205 case "test-inventory": 203 case "test-inventory":