node_manager_fkie: use priority queue for sreen io only if normal queue has more than 5 elements
@@ -2282,8 +2282,12 @@ class MasterViewProxy(QWidget):
ret = MessageBox.question(self, "Show IO", "You are going to open the IO of " + utf8(len(selectedNodes)) + " nodes at once\nContinue?", buttons=MessageBox.Ok | MessageBox.Cancel)
ret = (ret == MessageBox.Ok)
if ret:
+ queue = self._progress_queue_prio
+ # we use normal queue, if there are not a lot of processes
+ if self._progress_queue.count() < 5:
+ queue = self._progress_queue
for node in selectedNodes:
- self._progress_queue_prio.add2queue(utf8(uuid.uuid4()),
+ queue.add2queue(utf8(uuid.uuid4()),
''.join(['show IO of ', node.name]),
nm.screen().openScreen,
(node.name, self.getHostFromNode(node), False, self.current_user))
