summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2010-01-21 16:40:48 +0100
committerKarel Klic <kklic@redhat.com>2010-01-21 16:40:48 +0100
commit9774d96f40919e6b7dccb55739bb4ed52c0b90ba (patch)
tree96bd95ff23f7148951a1ce4e4554048f014d9237 /scripts
parentbbb210c836aaa6487e643176548b8b3feb11c347 (diff)
downloadabrt-9774d96f40919e6b7dccb55739bb4ed52c0b90ba.tar.gz
abrt-9774d96f40919e6b7dccb55739bb4ed52c0b90ba.tar.xz
abrt-9774d96f40919e6b7dccb55739bb4ed52c0b90ba.zip
Fixed creation of top_five list
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/abrt-bz-stats4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/abrt-bz-stats b/scripts/abrt-bz-stats
index 3e38c528..fd222dc9 100755
--- a/scripts/abrt-bz-stats
+++ b/scripts/abrt-bz-stats
@@ -115,7 +115,9 @@ class Month:
Top five components causing crash this month.
Returns list of tuples (component, number of crashes)
"""
- return reversed(sorted(self.components.items(), key=lambda x: x[1]))[0:5]
+ result = sorted(self.components.items(), key=lambda x: x[1])
+ result.reverse()
+ return result[0:5]
def closed_as_useful_percentage(self):
return int(100 * self.closed_as_useful / self.closed())