From b0cb9d0487cb19988db515aea52f22b92423ebaa Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 4 Aug 2010 17:59:44 +0200 Subject: better output formatting, somefixes --- module/web/ajax/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/web/ajax') 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'] = "" -- cgit v1.2.3