[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Make consensus-health checker handle relays without flags.



commit 6aa0cafa6190bdbe0569278ee5be3d9c09be038a
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Fri Oct 14 08:41:15 2011 +0200

    Make consensus-health checker handle relays without flags.
---
 src/org/torproject/chc/Parser.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/chc/Parser.java b/src/org/torproject/chc/Parser.java
index 4f27fbe..f7e9b57 100644
--- a/src/org/torproject/chc/Parser.java
+++ b/src/org/torproject/chc/Parser.java
@@ -125,7 +125,7 @@ public class Parser {
           } else {
             break;
           }
-        } else if (line.startsWith("s ")) {
+        } else if (line.startsWith("s ") || line.equals("s")) {
           sLine = line;
           if (line.contains(" Running")) {
             runningRelays++;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits