[or-cvs] [metrics-web/master 1/2] Display relay search results in descending order.
karsten at torproject.org
karsten at torproject.org
Thu Nov 25 08:47:25 UTC 2010
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu, 25 Nov 2010 09:39:22 +0100
Subject: Display relay search results in descending order.
Commit: dcdf70336fdc57a7fa08b2b76d1ee4beae23a637
---
.../torproject/ernie/web/RelaySearchServlet.java | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/ernie/web/RelaySearchServlet.java b/src/org/torproject/ernie/web/RelaySearchServlet.java
index c4fa768..10376d0 100644
--- a/src/org/torproject/ernie/web/RelaySearchServlet.java
+++ b/src/org/torproject/ernie/web/RelaySearchServlet.java
@@ -363,7 +363,8 @@ public class RelaySearchServlet extends HttpServlet {
/* Actually execute the query. */
long startedQuery = System.currentTimeMillis();
SortedMap<String, SortedSet<String>> foundDescriptors =
- new TreeMap<String, SortedSet<String>>();
+ new TreeMap<String, SortedSet<String>>(
+ Collections.reverseOrder());
Map<String, String> rawValidAfterLines =
new HashMap<String, String>();
Map<String, String> rawStatusEntries = new HashMap<String, String>();
--
1.7.1
More information about the tor-commits
mailing list