mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
* 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
This commit is contained in:
@@ -317,7 +317,7 @@ namespace OpenSim
|
||||
|
||||
LocalUserServices userService =
|
||||
new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
|
||||
m_networkServersInfo.DefaultHomeLocY, inventoryService);
|
||||
m_networkServersInfo.DefaultHomeLocY, inventoryService, null);
|
||||
userService.AddPlugin(m_standaloneUserPlugin);
|
||||
|
||||
LocalBackEndServices backendService = new LocalBackEndServices();
|
||||
|
||||
@@ -30,6 +30,7 @@ using System;
|
||||
using libsecondlife;
|
||||
using OpenSim.Framework;
|
||||
using OpenSim.Framework.Communications;
|
||||
using OpenSim.Framework.Statistics;
|
||||
using OpenSim.Framework.UserManagement;
|
||||
|
||||
namespace OpenSim.Region.Communications.Local
|
||||
@@ -42,8 +43,17 @@ namespace OpenSim.Region.Communications.Local
|
||||
private IInventoryServices m_inventoryService;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="serversInfo"></param>
|
||||
/// <param name="defaultHomeLocX"></param>
|
||||
/// <param name="defaultHomeLocY"></param>
|
||||
/// <param name="inventoryService"></param>
|
||||
/// <param name="statsCollector">Can be null if stats collection is not required.</param>
|
||||
public LocalUserServices(NetworkServersInfo serversInfo, uint defaultHomeLocX, uint defaultHomeLocY,
|
||||
IInventoryServices inventoryService)
|
||||
IInventoryServices inventoryService, UserStatsReporter statsCollector)
|
||||
: base(statsCollector)
|
||||
{
|
||||
m_serversInfo = serversInfo;
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace SimpleApp
|
||||
|
||||
LocalUserServices userService =
|
||||
new LocalUserServices(m_networkServersInfo, m_networkServersInfo.DefaultHomeLocX,
|
||||
m_networkServersInfo.DefaultHomeLocY, inventoryService);
|
||||
m_networkServersInfo.DefaultHomeLocY, inventoryService, null);
|
||||
userService.AddPlugin(m_userPlugin);
|
||||
|
||||
LocalBackEndServices backendService = new LocalBackEndServices();
|
||||
|
||||
Reference in New Issue
Block a user