diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-25 13:48:31 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-25 13:48:31 +0100 |
| commit | 6d54c4c0a428d2cf0dd7f9bcfe0b180fc8e75f8a (patch) | |
| tree | bdf1cc13e21f8679cb775a4778b0c49bbdb74a94 /scripts | |
| parent | c6287c4fe05e5f3557f121142dc8b53c701b1f07 (diff) | |
| parent | 74b84ad79f3c519f0ae507cab8e44a8949aa6ce2 (diff) | |
| download | abrt-6d54c4c0a428d2cf0dd7f9bcfe0b180fc8e75f8a.tar.gz abrt-6d54c4c0a428d2cf0dd7f9bcfe0b180fc8e75f8a.tar.xz abrt-6d54c4c0a428d2cf0dd7f9bcfe0b180fc8e75f8a.zip | |
Merge branch 'master' of ssh://vda@git.fedorahosted.org/git/abrt
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/abrt-bz-stats | 6 |
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()) |
