From bf6297fe115d0ca46ec39a4dbfd58b1878c6287d Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 29 Jul 2015 08:26:05 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1588 --- module/plugins/hooks/AntiStandby.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module') diff --git a/module/plugins/hooks/AntiStandby.py b/module/plugins/hooks/AntiStandby.py index 4a542953e..b0262ed33 100644 --- a/module/plugins/hooks/AntiStandby.py +++ b/module/plugins/hooks/AntiStandby.py @@ -26,14 +26,14 @@ class Kernel32(object): class AntiStandby(Addon): __name__ = "AntiStandby" __type__ = "hook" - __version__ = "0.02" + __version__ = "0.03" __status__ = "testing" __config__ = [("activated", "bool", "Activated" , True ), ("hdd" , "bool", "Prevent HDD standby" , True ), ("system" , "bool", "Prevent OS standby" , True ), ("display" , "bool", "Prevent display standby" , False), - ("interval" , "int" , "HDD touching interval in seconds", 7 )] + ("interval" , "int" , "HDD touching interval in seconds", 25 )] __description__ = """Prevent OS, HDD and display standby""" __license__ = "GPLv3" @@ -141,8 +141,8 @@ class AntiStandby(Addon): @Expose def max_mtime(self, path): return max(os.path.getmtime(os.path.join(root, file)) - for file in files - for root, dirs, files in os.walk(path, topdown=False)) + for root, dirs, files in os.walk(path, topdown=False) + for file in files) def periodical(self): -- cgit v1.2.3