diff options
author | Teravus Ovares | 2008-12-21 00:11:54 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-12-21 00:11:54 +0000 |
commit | 119104e35bc02e15a1ce08175ca6408fb8e9f7be (patch) | |
tree | 1f206e4380b559b856f7d03da79b3aff9f5b9712 /OpenSim/Region/Environment/Scenes | |
parent | Slowing things down even more on TPs, to see if that helps the European folks... (diff) | |
download | opensim-SC_OLD-119104e35bc02e15a1ce08175ca6408fb8e9f7be.zip opensim-SC_OLD-119104e35bc02e15a1ce08175ca6408fb8e9f7be.tar.gz opensim-SC_OLD-119104e35bc02e15a1ce08175ca6408fb8e9f7be.tar.bz2 opensim-SC_OLD-119104e35bc02e15a1ce08175ca6408fb8e9f7be.tar.xz |
* 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.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 3 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | 8 |
2 files changed, 11 insertions, 0 deletions
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 | |||
2346 | client.OnSoundTrigger += soundModule.TriggerSound; | 2346 | client.OnSoundTrigger += soundModule.TriggerSound; |
2347 | 2347 | ||
2348 | client.OnObjectOwner += ObjectOwner; | 2348 | client.OnObjectOwner += ObjectOwner; |
2349 | |||
2350 | if (m_statsReporter != null) | ||
2351 | client.OnNetworkStatsUpdate += m_statsReporter.AddPacketsFromClientStats; | ||
2349 | 2352 | ||
2350 | // EventManager.TriggerOnNewClient(client); | 2353 | // EventManager.TriggerOnNewClient(client); |
2351 | } | 2354 | } |
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs index 70287fc..c614f78 100644 --- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |||
@@ -409,6 +409,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
409 | return lastReportedSimFPS; | 409 | return lastReportedSimFPS; |
410 | } | 410 | } |
411 | 411 | ||
412 | public void AddPacketsFromClientStats(int inPackets, int outPackets, int unAckedBytes) | ||
413 | { | ||
414 | AddInPackets(inPackets); | ||
415 | AddOutPackets(outPackets); | ||
416 | AddunAckedBytes(unAckedBytes); | ||
417 | |||
418 | } | ||
419 | |||
412 | #endregion | 420 | #endregion |
413 | } | 421 | } |
414 | } | 422 | } |