Skip to content

Commit

Permalink
Change big packages report
Browse files Browse the repository at this point in the history
Signed-off-by: Dan McGee <dan@archlinux.org>
  • Loading branch information
toofishes committed Apr 29, 2011
1 parent 2d1cfc2 commit e58eb76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions devel/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ def report(request, report):
cutoff = datetime.now() - timedelta(days=730)
packages = packages.filter(build_date__lt=cutoff).order_by('build_date')
elif report == 'big':
title = '100 largest compressed packages'
packages = packages.order_by('-compressed_size')[:100]
title = 'Packages with compressed size > 50 MiB'
cutoff = 50 * 1024 * 1024
packages = packages.filter(compressed_size__gte=cutoff).order_by('-compressed_size')
names = [ 'Compressed Size', 'Installed Size' ]
attrs = [ 'compressed_size', 'installed_size' ]
elif report == 'uncompressed-man':
Expand Down
2 changes: 1 addition & 1 deletion templates/devel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h3>Package Todo Lists</h3>

<h3>Developer Reports</h3>
<ul>
<li><a href="reports/big/">Big</a>: 100 largest compressed packages in the repositories</li>
<li><a href="reports/big/">Big</a>: All packages with compressed size &gt; 50 MiB</li>
<li><a href="reports/old/">Old</a>: Packages last built more than two years ago</li>
<li><a href="reports/uncompressed-man/">Uncompressed Manpages</a>: Self-explanatory</li>
<li><a href="reports/uncompressed-info/">Uncompressed Info Pages</a>: Self-explanatory</li>
Expand Down

0 comments on commit e58eb76

Please sign in to comment.