diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-16 01:19:04 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-04-16 01:19:04 -0400 |
commit | 7da44456fd05f2ac74355825de7100e46e86449b (patch) | |
tree | 036c0732cbfcbbbd0cf9f7b3dd06d3c2ea7e9b09 /devel | |
parent | 155bf43a28e404f327a7bcff214c22e212627673 (diff) | |
parent | 1edc33fd73ba588dea8765cd2d9a936f98d7dc1e (diff) |
Merge tag 'release_2015-01-13' into archweb-generic
Version bumps and minor fixes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/reports.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/devel/reports.py b/devel/reports.py index ca1a3321..66fbd627 100644 --- a/devel/reports.py +++ b/devel/reports.py @@ -48,7 +48,8 @@ def big(packages, username): def badcompression(packages, username): cutoff = 0.90 * F('installed_size') - packages = packages.filter(compressed_size__gt=0, installed_size__gt=0, + packages = packages.filter(compressed_size__gt=25*1024, + installed_size__gt=25*1024, compressed_size__gte=cutoff).order_by('-compressed_size') # Format the compressed and installed sizes with MB/GB/etc suffixes @@ -153,11 +154,10 @@ REPORT_BIG = DeveloperReport('big', 'Big', ['compressed_size_pretty', 'installed_size_pretty']) REPORT_BADCOMPRESS = DeveloperReport('badcompression', 'Bad Compression', - 'Packages with a compression ratio of less than 10%', badcompression, + 'Packages > 25 KiB with a compression ratio < 10%', badcompression, ['Compressed Size', 'Installed Size', 'Ratio', 'Type'], ['compressed_size_pretty', 'installed_size_pretty','ratio', 'compress_type']) - REPORT_MAN = DeveloperReport('uncompressed-man', 'Uncompressed Manpages', 'Packages with uncompressed manpages', uncompressed_man) |