aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-01-28 22:00:38 +0000
committerJustin Clarke Casey2008-01-28 22:00:38 +0000
commitbeefbb46d22d318d1964af16b3e4601e7e23709f (patch)
tree96670d4f9e7c463827e0ff2f394193305dcf65e0 /OpenSim/Region
parent* Move AssetStatsReporter to Framework.Statistics (diff)
downloadopensim-SC_OLD-beefbb46d22d318d1964af16b3e4601e7e23709f.zip
opensim-SC_OLD-beefbb46d22d318d1964af16b3e4601e7e23709f.tar.gz
opensim-SC_OLD-beefbb46d22d318d1964af16b3e4601e7e23709f.tar.bz2
opensim-SC_OLD-beefbb46d22d318d1964af16b3e4601e7e23709f.tar.xz
* Add total logouts (and total logins) to server side user stats
* Passing the stats collector through object chains is not ideal - this will change when more stats come in * This change will need a prebuild
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs2
-rw-r--r--OpenSim/Region/Communications/Local/LocalUserServices.cs12
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs2
3 files changed, 13 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 9484e15..a620bd4 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -317,7 +317,7 @@ namespace OpenSim
317 317
318 LocalUserServices userService = 318 LocalUserServices userService =
319 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, 319 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
320 m_networkServersInfo.DefaultHomeLocY, inventoryService); 320 m_networkServersInfo.DefaultHomeLocY, inventoryService, null);
321 userService.AddPlugin(m_standaloneUserPlugin); 321 userService.AddPlugin(m_standaloneUserPlugin);
322 322
323 LocalBackEndServices backendService = new LocalBackEndServices(); 323 LocalBackEndServices backendService = new LocalBackEndServices();
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index e02a600..8a4d4e7 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -30,6 +30,7 @@ using System;
30using libsecondlife; 30using libsecondlife;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Framework.Communications; 32using OpenSim.Framework.Communications;
33using OpenSim.Framework.Statistics;
33using OpenSim.Framework.UserManagement; 34using OpenSim.Framework.UserManagement;
34 35
35namespace OpenSim.Region.Communications.Local 36namespace OpenSim.Region.Communications.Local
@@ -42,8 +43,17 @@ namespace OpenSim.Region.Communications.Local
42 private IInventoryServices m_inventoryService; 43 private IInventoryServices m_inventoryService;
43 44
44 45
46 /// <summary>
47 ///
48 /// </summary>
49 /// <param name="serversInfo"></param>
50 /// <param name="defaultHomeLocX"></param>
51 /// <param name="defaultHomeLocY"></param>
52 /// <param name="inventoryService"></param>
53 /// <param name="statsCollector">Can be null if stats collection is not required.</param>
45 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY, 54 public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY,
46 IInventoryServices inventoryService) 55 IInventoryServices inventoryService, UserStatsReporter statsCollector)
56 : base(statsCollector)
47 { 57 {
48 m_serversInfo = serversInfo; 58 m_serversInfo = serversInfo;
49 59
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index 485d657..ff29b11 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -77,7 +77,7 @@ namespace SimpleApp
77 77
78 LocalUserServices userService = 78 LocalUserServices userService =
79 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX, 79 new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
80 m_networkServersInfo.DefaultHomeLocY, inventoryService); 80 m_networkServersInfo.DefaultHomeLocY, inventoryService, null);
81 userService.AddPlugin(m_userPlugin); 81 userService.AddPlugin(m_userPlugin);
82 82
83 LocalBackEndServices backendService = new LocalBackEndServices(); 83 LocalBackEndServices backendService = new LocalBackEndServices();