summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/RestartFailed.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/RestartFailed.py')
-rw-r--r--module/plugins/hooks/RestartFailed.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py
index 153b4716c..0c74a544a 100644
--- a/module/plugins/hooks/RestartFailed.py
+++ b/module/plugins/hooks/RestartFailed.py
@@ -18,15 +18,15 @@ class RestartFailed(Hook):
MIN_CHECK_INTERVAL = 15 * 60 #: 15 minutes
- # def pluginConfigChanged(self, plugin, name, value):
- # if name == "interval":
- # interval = value * 60
- # if self.MIN_CHECK_INTERVAL <= interval != self.interval:
- # self.core.scheduler.removeJob(self.cb)
- # self.interval = interval
- # self.init_periodical()
- # else:
- # self.logDebug("Invalid interval value, kept current")
+ #: def pluginConfigChanged(self, plugin, name, value):
+ #: if name == "interval":
+ #: interval = value * 60
+ #: if self.MIN_CHECK_INTERVAL <= interval != self.interval:
+ #: self.core.scheduler.removeJob(self.cb)
+ #: self.interval = interval
+ #: self.init_periodical()
+ #: else:
+ #: self.logDebug("Invalid interval value, kept current")
def periodical(self):
@@ -36,10 +36,10 @@ class RestartFailed(Hook):
def setup(self):
self.info = {} #@TODO: Remove in 0.4.10
- # self.event_list = ["pluginConfigChanged"]
+ #: self.event_list = ["pluginConfigChanged"]
self.interval = self.MIN_CHECK_INTERVAL
def activate(self):
- # self.pluginConfigChanged(self.__name__, "interval", self.getConfig('interval'))
+ #: self.pluginConfigChanged(self.__name__, "interval", self.getConfig('interval'))
self.interval = max(self.MIN_CHECK_INTERVAL, self.getConfig('interval') * 60)