summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 01:19:24 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-16 01:19:24 -0400
commitf86095bab5e5af6a2bf8be8ebe46d445864b4b71 (patch)
treefd1cfa3f7488190214e415d977a3af0e84177822 /devel
parent7aabbe788bb4e26ee9c7cfc0e18692b487e11099 (diff)
parent7da44456fd05f2ac74355825de7100e46e86449b (diff)
Merge branch 'archweb-generic'
Diffstat (limited to 'devel')
-rw-r--r--devel/reports.py6
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)