Changeset - 5e8c7d78abd5
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-01-09 14:03:22
marcin@python-works.com
fixes #98 protection against float division of percentage stats
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/controllers/admin/repos.py
Show inline comments
 
@@ -285,7 +285,7 @@ class ReposController(BaseController):
 

	
 
        c.repo_last_rev = r.revisions[-1] if r.revisions else 0
 

	
 
        if last_rev == 0:
 
        if last_rev == 0 or c.repo_last_rev == 0:
 
            c.stats_percentage = 0
 
        else:
 
            c.stats_percentage = '%.2f' % ((float((last_rev)) /
0 comments (0 inline, 0 general)