summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-01-25 11:58:45 +0100
committerKarel Klic <kklic@redhat.com>2010-01-25 11:58:45 +0100
commit6c189fb2d2e8dfcbd796529a23c99d30517255a6 (patch)
tree1953b72e7487a71ab6f93bd7b3cc695a478acbc7 /scripts
parent0fd863dfdb13a5e6381ac90fec685995edf000ce (diff)
parent74b84ad79f3c519f0ae507cab8e44a8949aa6ce2 (diff)
downloadabrt-6c189fb2d2e8dfcbd796529a23c99d30517255a6.tar.gz
abrt-6c189fb2d2e8dfcbd796529a23c99d30517255a6.tar.xz
abrt-6c189fb2d2e8dfcbd796529a23c99d30517255a6.zip
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/abrt-bz-stats6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/abrt-bz-stats b/scripts/abrt-bz-stats
index e58a87f8..48ac8386 100755
--- a/scripts/abrt-bz-stats
+++ b/scripts/abrt-bz-stats
@@ -111,14 +111,14 @@ class Month:
result += component
return result
- def top_crashers(self):
+ def top_crashers(self, n = 10):
"""
- Top five components causing crash this month.
+ Top n components causing crash this month.
Returns list of tuples (component, number of crashes)
"""
result = sorted(self.components.items(), key=lambda x: x[1])
result.reverse()
- return result[0:5]
+ return result[0:n]
def closed_as_useful_percentage(self):
return int(100 * self.closed_as_useful / self.closed())