From 119104e35bc02e15a1ce08175ca6408fb8e9f7be Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 21 Dec 2008 00:11:54 +0000 Subject: * Re-implement packet tracking in IClientAPI so we can see what's going on in the client network in the simstats manager. This makes packets in per second, packets out per second, and unacked bytes work again in the simulator stats section. --- OpenSim/Region/Environment/Scenes/Scene.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 2b8ee74..5bc416f 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -2346,6 +2346,9 @@ namespace OpenSim.Region.Environment.Scenes client.OnSoundTrigger += soundModule.TriggerSound; client.OnObjectOwner += ObjectOwner; + + if (m_statsReporter != null) + client.OnNetworkStatsUpdate += m_statsReporter.AddPacketsFromClientStats; // EventManager.TriggerOnNewClient(client); } -- cgit v1.1