Added some debugging for queues. Temporary change

dsg
Dan Lake 2011-03-14 22:17:51 -07:00
parent 7bcab8e975
commit 10e405704a
2 changed files with 9 additions and 5 deletions

View File

@ -254,7 +254,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
void packet_type_timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
for (int i = 0; i < 9; ++i)
m_log.WarnFormat("OutgoingPacket type {0} count = {1}", i, OutgoingPacket.CatCounts[i]);
{
int val = Interlocked.Exchange(ref OutgoingPacket.CatCounts[i], 0);
m_log.WarnFormat("OutgoingPacket type {0} count = {1}", i, val);
}
}
public new void Stop()

View File

@ -28,6 +28,7 @@
using System;
using OpenSim.Framework;
using OpenMetaverse;
using System.Threading;
namespace OpenSim.Region.ClientStack.LindenUDP
{
@ -67,10 +68,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Client = client;
Buffer = buffer;
Category = category;
int type = (int)category;
if (category == ThrottleOutPacketType.Unknown)
CatCounts[8]++;
else
CatCounts[(int)category]++;
type = 8;
Interlocked.Increment(ref OutgoingPacket.CatCounts[type]);
}
}
}