From 463ccdfcdfe92cf4c7372f5b0ff9c224f78e871b Mon Sep 17 00:00:00 2001 From: iou1name Date: Wed, 20 Feb 2019 13:16:50 -0500 Subject: [PATCH] sort the trackers --- rtorrent.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rtorrent.py b/rtorrent.py index 2ac381b..3c39eda 100644 --- a/rtorrent.py +++ b/rtorrent.py @@ -172,6 +172,7 @@ def get_stats(): trackers[torrent.tracker][i] += stats[i] else: trackers[torrent.tracker] = stats + trackers = dict(sorted(trackers.items())) total = [0]*3 for i in range(len(total)): total[i] = sum([v[i] for _, v in trackers.items()])