summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-25 15:09:58 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-25 15:09:58 +0100
commitbce8619db807bb1729563d2b64b84497b7fe93b8 (patch)
tree14a26a5f67ba5b0a3a31f707c57a631d6a2aeeb9 /scripts
parent94c48351ac284c0e8a309c46fe6f878dcdd4f6a2 (diff)
parent7a422cfae45da96ae65f557cb8db8d7165f2e2c4 (diff)
downloadabrt-bce8619db807bb1729563d2b64b84497b7fe93b8.tar.gz
abrt-bce8619db807bb1729563d2b64b84497b7fe93b8.tar.xz
abrt-bce8619db807bb1729563d2b64b84497b7fe93b8.zip
Merge branch 'master' into rhel6
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 fd222dc..78686bb 100755
--- a/scripts/abrt-bz-stats
+++ b/scripts/abrt-bz-stats
@@ -110,14 +110,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())