mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
* Fixed a packet counting issue that I introduced
* Fixed a bunch of goofy math for calculating the sim stats counters * Made most of the sim stats counters additive so it's easy to change the sim stats interval * Changed the sim stats send interval to 3 seconds
This commit is contained in:
@@ -65,11 +65,11 @@ namespace OpenSim.Region.ClientStack
|
||||
private Timer m_clientPingTimer;
|
||||
|
||||
private int m_packetsReceived = 0;
|
||||
private int m_lastpacketsSentToScene = 0;
|
||||
private int m_lastPacketsReceivedSentToScene = 0;
|
||||
private int m_unAckedBytes = 0;
|
||||
|
||||
private int m_packetsSent = 0;
|
||||
private int m_lastPacketsSent = 0;
|
||||
private int m_lastPacketsSentSentToScene = 0;
|
||||
|
||||
private int m_probesWithNoIngressPackets = 0;
|
||||
private int m_lastPacketsReceived = 0;
|
||||
@@ -426,7 +426,7 @@ namespace OpenSim.Region.ClientStack
|
||||
m_lastPacketsReceived = m_packetsReceived;
|
||||
|
||||
}
|
||||
SendPacketStats();
|
||||
//SendPacketStats();
|
||||
}
|
||||
|
||||
# region Setup
|
||||
@@ -2503,7 +2503,7 @@ namespace OpenSim.Region.ClientStack
|
||||
|
||||
SendAcks();
|
||||
ResendUnacked();
|
||||
|
||||
SendPacketStats();
|
||||
|
||||
}
|
||||
|
||||
@@ -2511,9 +2511,9 @@ namespace OpenSim.Region.ClientStack
|
||||
{
|
||||
if (OnPacketStats != null)
|
||||
{
|
||||
OnPacketStats(m_packetsReceived - m_lastPacketsReceived, m_packetsSent - m_lastPacketsSent, m_unAckedBytes);
|
||||
m_lastPacketsReceived = m_packetsReceived;
|
||||
m_lastPacketsSent = m_packetsSent;
|
||||
OnPacketStats(m_packetsReceived - m_lastPacketsReceivedSentToScene, m_packetsSent - m_lastPacketsSentSentToScene, m_unAckedBytes);
|
||||
m_lastPacketsReceivedSentToScene = m_packetsReceived;
|
||||
m_lastPacketsSentSentToScene = m_packetsSent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user