mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
* Added Packets In/s, Packets Out/s and Current un_acked Packets to the SimStatsReporter
* This doesn't take into account the throttler, it just assumes the throttle limit isn't reached.
This commit is contained in:
@@ -1228,6 +1228,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
client.OnGrabObject += ProcessObjectGrab;
|
||||
client.OnAvatarPickerRequest += ProcessAvatarPickerRequest;
|
||||
client.OnPacketStats += AddPacketStats;
|
||||
|
||||
EventManager.TriggerOnNewClient(client);
|
||||
}
|
||||
@@ -1759,6 +1760,13 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
return CommsManager.GetUserFriendList(ownerID);
|
||||
}
|
||||
|
||||
public void AddPacketStats(int inPackets, int outPackets, int unAckedBytes)
|
||||
{
|
||||
m_statsReporter.AddInPackets(inPackets);
|
||||
m_statsReporter.AddOutPackets(outPackets);
|
||||
m_statsReporter.AddunAckedBytes(unAckedBytes);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Console Commands
|
||||
|
||||
Reference in New Issue
Block a user