mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Checker: Add timer on mage checker.
This commit is contained in:
1 parent
4416f0d37e
commit
dc78998bf6
1 file changed
+3
-1
+3
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user