* 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:
Teravus Ovares
2008-01-16 03:33:46 +00:00
parent 314c554ed4
commit 5958192398
4 changed files with 42 additions and 0 deletions

View File

@@ -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