diff options
| author | 2009-06-12 15:36:48 +0200 | |
|---|---|---|
| committer | 2009-06-12 15:36:48 +0200 | |
| commit | 979daf6a4daae605b2a39e916c16015437fac98d (patch) | |
| tree | 7f40809a692548717c778ec723fd1fced09cf539 /module | |
| parent | utf-8 encodung, correcting file header (diff) | |
| download | pyload-979daf6a4daae605b2a39e916c16015437fac98d.tar.xz | |
little fixes
Diffstat (limited to 'module')
| -rw-r--r-- | module/download_thread.py | 4 | ||||
| -rw-r--r-- | module/thread_list.py | 2 | 
2 files changed, 4 insertions, 2 deletions
| diff --git a/module/download_thread.py b/module/download_thread.py index f4530c3b3..bb32030a7 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -40,7 +40,9 @@ class Status(object):      def get_speed(self):          return self.pyfile.plugin.req.get_speed()      def kB_left(self): -        return self.pyfile.plugins.req.kB_left() +        return self.pyfile.plugin.req.kB_left() +    def size(self): +        return self.pyfile.plugin.req.dl_size / 1024  class Download_Thread(threading.Thread): diff --git a/module/thread_list.py b/module/thread_list.py index 850e738db..bfe99c6e2 100644 --- a/module/thread_list.py +++ b/module/thread_list.py @@ -32,7 +32,7 @@ class Thread_List(object):      def __init__(self, parent):          self.parent = parent          self.threads = [] -        self.max_threads = self.parent.config['max_downloads'] +        self.max_threads = int(self.parent.config['max_downloads'])          self.py_load_files = [] # files in queque          self.f_relation = [0, 0]          self.lock = RLock() | 
