dhtlog updates
[oweals/gnunet.git] / src / util / scheduler.c
index 0ff6f9612241e1293555704668438feff91b3c1a..eb99414f245b0443c3b7f4a153b78551e15b40e0 100644 (file)
@@ -875,7 +875,7 @@ GNUNET_SCHEDULER_get_load (struct GNUNET_SCHEDULER_Handle *sched,
   if (p == GNUNET_SCHEDULER_PRIORITY_KEEP)
     p = sched->current_priority;
   ret = 0;
-  pos = sched->ready[p];
+  pos = sched->ready[check_priority (p)];
   while (pos != NULL)
     {
       pos = pos->next;