From eb6f3348c43f3456fa40716589967ec8a5ec53e2 Mon Sep 17 00:00:00 2001
From: Thomas Pointhuber
Date: Sat, 10 Jan 2015 19:44:08 +0100
Subject: [PATCH] [enh] display filesize greater 1TB
---
searx/templates/oscar/result_templates/torrent.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/searx/templates/oscar/result_templates/torrent.html b/searx/templates/oscar/result_templates/torrent.html
index 5268869ca..9258a0cb7 100644
--- a/searx/templates/oscar/result_templates/torrent.html
+++ b/searx/templates/oscar/result_templates/torrent.html
@@ -11,7 +11,8 @@
{% if result.filesize < 1024 %}{{ result.filesize }} Byte
{% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} kb
{% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} MB
- {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} GB{% endif %}
+ {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} GB
+ {% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} TB{% endif %}
{% endif %}
{% if result.files %}{{ icon('file') }} {{ _('Number of Files') }} {{ result.files }}{% endif %}