* minor: eliminate warnings from LindenUDP

This commit is contained in:
Justin Clarke Casey
2008-07-24 16:03:17 +00:00
parent 77297ed6cc
commit 11385c53e6
2 changed files with 18 additions and 18 deletions

View File

@@ -137,7 +137,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//
private Dictionary<uint, int> m_DupeTracker =
new Dictionary<uint, int>();
private uint m_DupeTrackerWindow = 30;
//private uint m_DupeTrackerWindow = 30;
// Values for the SimStatsReporter
//
@@ -450,21 +450,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// We can't keep an unlimited record of dupes. This will prune the
// dictionary by age.
//
private void PruneDupeTracker()
{
lock (m_DupeTracker)
{
Dictionary<uint, int> packs =
new Dictionary<uint, int>(m_DupeTracker);
foreach (uint pack in packs.Keys)
{
if (Util.UnixTimeSinceEpoch() - m_DupeTracker[pack] >
m_DupeTrackerWindow)
m_DupeTracker.Remove(pack);
}
}
}
// private void PruneDupeTracker()
// {
// lock (m_DupeTracker)
// {
// Dictionary<uint, int> packs =
// new Dictionary<uint, int>(m_DupeTracker);
//
// foreach (uint pack in packs.Keys)
// {
// if (Util.UnixTimeSinceEpoch() - m_DupeTracker[pack] >
// m_DupeTrackerWindow)
// m_DupeTracker.Remove(pack);
// }
// }
// }
public void InPacket(Packet packet)
{