Преглед на файлове

Merge branch 'bugfix' of jexelmans/joeriPDEVS into master

Randy Paredis преди 7 месеца
родител
ревизия
edb714017f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/queueing/queue.py

+ 1 - 1
examples/queueing/queue.py

@@ -4,7 +4,7 @@ from pypdevs.DEVS import AtomicDEVS
 class QueueState:
     def __init__(self, outputs):
         # Keep a list of all idle processors
-        self.idle_procs = range(outputs)
+        self.idle_procs = list(range(outputs))
         # Keep a list that is the actual queue data structure
         self.queue = []
         # Keep the process that is currently being processed