add type to mod/plug stats

This commit is contained in:
Bastian Schroll 2019-10-25 13:25:56 +02:00
parent c80c9227d5
commit 869bc141de
No known key found for this signature in database
GPG key ID: 0AE96912A20E9F5F
2 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,8 @@ class Module:
"""!Returns statistical information's from last module run
@return Statistics as pyton dict"""
stats = {"runCount": self._runCount,
stats = {"type": "plugin",
"runCount": self._runCount,
"cumTime": self._cumTime,
"moduleTime": self._moduleTime,
"moduleErrorCount": self._moduleErrorCount}

View file

@ -123,7 +123,8 @@ class Plugin:
"""!Returns statistical information's from last plugin run
@return Statistics as pyton dict"""
stats = {"runCount": self._runCount,
stats = {"type": "plugin",
"runCount": self._runCount,
"sumTime": self._sumTime,
"cumTime": self._cumTime,
"setupTime": self._setupTime,