diff options
-rw-r--r-- | plugins/Scheduler/__init__.py | 2 | ||||
-rw-r--r-- | plugins/Scheduler/plugin.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Scheduler/__init__.py b/plugins/Scheduler/__init__.py index 165a0b296..005de9ccd 100644 --- a/plugins/Scheduler/__init__.py +++ b/plugins/Scheduler/__init__.py @@ -2,7 +2,7 @@ plugin_name = "Scheduler" # The name of the plugin plugin_author = "Lazka - updated by markybob" # The author's Name -plugin_version = "0.5.6" # The plugin's version number +plugin_version = "0.5.2" # The plugin's version number plugin_description = "Scheduler" # A description of the plugin def deluge_init(deluge_path): diff --git a/plugins/Scheduler/plugin.py b/plugins/Scheduler/plugin.py index 029b23fda..282cbb92c 100644 --- a/plugins/Scheduler/plugin.py +++ b/plugins/Scheduler/plugin.py @@ -31,6 +31,7 @@ class plugin_Scheduler: def update(self): time_now = time.localtime(time.time()) + if self.status is not self.button_state[time_now[3]][time_now[6]]: self.status = self.button_state[time_now[3]][time_now[6]] @@ -54,14 +55,14 @@ class plugin_Scheduler: self.core.apply_queue() def limit(self): - self.config.set("max_download_speed", float(self.dllimit)) - self.config.set("max_upload_speed", float(self.ullimit)) + self.config.set("max_download_rate", float(self.dllimit)) + self.config.set("max_upload_rate", float(self.ullimit)) def unlimit(self): self.interface.apply_prefs() #Configuration dialog - def configure(self, window): + def configure(self): global scheduler_select self.button_state_temp = copy.deepcopy(self.button_state) |