Added some debugging for queues. Temporary change
parent
7bcab8e975
commit
10e405704a
|
@ -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()
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
using System;
|
||||
using OpenSim.Framework;
|
||||
using OpenMetaverse;
|
||||
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue