summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-06-08 03:53:52 +0200
committerDan McGee <dan@archlinux.org>2012-06-08 03:53:52 +0200
commit1b03069f0d9e0397a7ff07404343c9400bbcfa1c (patch)
treecc83e18af2933a8d011299e95e9d63aa00c75ff5 /devel
parenta5fafae94f23ca2cf138cf07774e2c2a1a7d993a (diff)
downloadarchweb-1b03069f0d9e0397a7ff07404343c9400bbcfa1c.tar.gz
archweb-1b03069f0d9e0397a7ff07404343c9400bbcfa1c.tar.xz
Use 3 decimal places for showing compression ratio
Otherwise there are too many grouped under each value. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r--devel/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py
index 16b6acc..78ed26f 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -234,7 +234,7 @@ def report(request, report_name, username=None):
package.installed_size_pretty = filesizeformat(
package.installed_size)
ratio = package.compressed_size / float(package.installed_size)
- package.ratio = '%.2f' % ratio
+ package.ratio = '%.3f' % ratio
package.compress_type = package.filename.split('.')[-1]
elif report_name == 'uncompressed-man':
title = 'Packages with uncompressed manpages'