aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/PriorityQueue.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Framework/PriorityQueue.cs b/OpenSim/Framework/PriorityQueue.cs
index 8eeafd1..3e6fdaa 100644
--- a/OpenSim/Framework/PriorityQueue.cs
+++ b/OpenSim/Framework/PriorityQueue.cs
@@ -101,6 +101,7 @@ namespace OpenSim.Framework
101 int count = 0; 101 int count = 0;
102 for (int i = 0; i < m_heaps.Length; ++i) 102 for (int i = 0; i < m_heaps.Length; ++i)
103 count += m_heaps[i].Count; 103 count += m_heaps[i].Count;
104
104 return count; 105 return count;
105 } 106 }
106 } 107 }
@@ -171,9 +172,9 @@ namespace OpenSim.Framework
171 } 172 }
172 173
173 // Find the next non-immediate queue with updates in it 174 // Find the next non-immediate queue with updates in it
174 for (int i = 1; i < NumberOfQueues; ++i) 175 for (int i = 0; i < NumberOfQueues; ++i)
175 { 176 {
176 m_nextQueue = (uint)((m_nextQueue + i) % NumberOfQueues); 177 m_nextQueue = (uint)((m_nextQueue + 1) % NumberOfQueues);
177 m_countFromQueue = m_queueCounts[m_nextQueue]; 178 m_countFromQueue = m_queueCounts[m_nextQueue];
178 179
179 // if this is one of the immediate queues, just skip it 180 // if this is one of the immediate queues, just skip it