mirror of https://gitlab.com/pamhyr/pamhyr2
Checker: Add timer on mage checker.
parent
4416f0d37e
commit
dc78998bf6
|
|
@ -3,7 +3,7 @@
|
|||
import time
|
||||
|
||||
from queue import Queue
|
||||
from tools import flatten
|
||||
from tools import flatten, timer
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
|
||||
|
|
@ -25,6 +25,7 @@ class MageNetworkGraphChecker(AbstractModelChecker):
|
|||
self._name = _translate("Checker", f"Mage network graph {mode} checker")
|
||||
self._description = _translate("Checker", "Check if the network graph is valid")
|
||||
|
||||
@timer
|
||||
def _connectivity(self, summary, status, graph):
|
||||
# Keep only enabled edges
|
||||
edges = list(
|
||||
|
|
@ -91,6 +92,7 @@ class MageNetworkGraphChecker(AbstractModelChecker):
|
|||
|
||||
return summary, status
|
||||
|
||||
@timer
|
||||
def _cycle(self, summary, status, graph):
|
||||
# Keep only enabled edges
|
||||
edges = list(
|
||||
|
|
|
|||
Loading…
Reference in New Issue