diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-04 17:59:44 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-04 17:59:44 +0200 |
commit | b0cb9d0487cb19988db515aea52f22b92423ebaa (patch) | |
tree | 39e7ab111053d19be7d3e9e152be59ed4452690c /module/web/ajax | |
parent | some fixes (diff) | |
download | pyload-b0cb9d0487cb19988db515aea52f22b92423ebaa.tar.xz |
better output formatting, somefixes
Diffstat (limited to 'module/web/ajax')
-rw-r--r-- | module/web/ajax/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py index 2c807f6c9..b1fe2f676 100644 --- a/module/web/ajax/views.py +++ b/module/web/ajax/views.py @@ -108,12 +108,12 @@ def links(request): ids.append(link['id']) if link['status'] == 12: - link['info'] = "%s @ %s kb/s" % (format_time(link['eta']), round(link['speed'], 2)) + link['info'] = "%s @ %s kb/s" % (link['format_eta'], round(link['speed'], 2)) elif link['status'] == 5: link['percent'] = 0 link['size'] = 0 link['kbleft'] = 0 - link['info'] = _("waiting %s") % format_time(link['wait_until'] - time.time()) + link['info'] = _("waiting %s") % link['format_wait'] else: link['info'] = "" |