diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-08 06:32:02 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-08 06:32:02 +0200 |
commit | 570f37674434c7f3816e3949967c31407610da6c (patch) | |
tree | 2175692750df20384073da4a6b26ef013f1d843b /module/plugins/hooks/AntiStandby.py | |
parent | New plugin: LogMarker (diff) | |
download | pyload-570f37674434c7f3816e3949967c31407610da6c.tar.xz |
Spare improvements
Diffstat (limited to 'module/plugins/hooks/AntiStandby.py')
-rw-r--r-- | module/plugins/hooks/AntiStandby.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/AntiStandby.py b/module/plugins/hooks/AntiStandby.py index fbb7f6760..aa7a028a5 100644 --- a/module/plugins/hooks/AntiStandby.py +++ b/module/plugins/hooks/AntiStandby.py @@ -27,7 +27,7 @@ class Kernel32(object): class AntiStandby(Addon): __name__ = "AntiStandby" __type__ = "hook" - __version__ = "0.11" + __version__ = "0.12" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , True ), @@ -41,8 +41,9 @@ class AntiStandby(Addon): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - TMP_FILE = ".antistandby" - MIN_INTERVAL = 5 + TMP_FILE = ".antistandby" + + PERIODICAL_INTERVAL = 5 def init(self): @@ -56,8 +57,7 @@ class AntiStandby(Addon): display = not self.get_config('display') if hdd: - self.interval = max(self.get_config('interval'), self.MIN_INTERVAL) - self.init_periodical(threaded=True) + self.start_periodical(self.get_config('interval'), threaded=True) if os.name is "nt": self.win_standby(system, display) |