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

karsten at torproject.org karsten at torproject.org
Fri Oct 14 06:42:33 UTC 2011


commit 6aa0cafa6190bdbe0569278ee5be3d9c09be038a
Author: Karsten Loesing <karsten.loesing at gmx.net>
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++;



More information about the tor-commits mailing list