From 9c824ff862f6545903155ddc1bf41235e3201db3 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sat, 13 Jan 2018 16:31:20 +0100 Subject: [PATCH] little changes --- _info/functions.txt | 1 + boswatch/plugin/plugin.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/_info/functions.txt b/_info/functions.txt index 5b38760..afab147 100644 --- a/_info/functions.txt +++ b/_info/functions.txt @@ -11,4 +11,5 @@ Beschreibung aus CSV File Konfigurationsdateien Modulweit teilbar über "Sharepoints" Alarm-Daten Übermittlung per definierten bwPacket-Paket Plugin Statistiken sowie Ausführungszeiten +Plugin Priorisierung Funktionaler und dynamischer Pluginloader diff --git a/boswatch/plugin/plugin.py b/boswatch/plugin/plugin.py index 4a7cff2..2958dea 100644 --- a/boswatch/plugin/plugin.py +++ b/boswatch/plugin/plugin.py @@ -103,7 +103,7 @@ class Plugin: """!Returns statistical information's from last plugin run @return Statistics as pyton dict""" - stats = {"runCount": self._runCount, "sumTime": self._sumTime, "cumTime": self._runCount + self._sumTime, + stats = {"runCount": self._runCount, "sumTime": self._sumTime, "cumTime": self._runCount * self._sumTime, "setupTime": self._setupTime, "alarmTime": self._alarmTime, "teardownTime": self._teardownTime, "setupErrorCount": self._setupErrorCount, "alarmErrorCount": self._alarmErrorCount, "teardownErrorCount": self._teardownErrorCount} return stats