[tor-commits] [onionoo/master] A consensus weight of 0 is still valid.
karsten at torproject.org
karsten at torproject.org
Tue Apr 3 11:59:32 UTC 2012
commit 1f18ac65e8f1bf55aa9e65ccbb11a9652bae1aad
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Tue Apr 3 13:59:14 2012 +0200
A consensus weight of 0 is still valid.
---
src/org/torproject/onionoo/DetailDataWriter.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/onionoo/DetailDataWriter.java b/src/org/torproject/onionoo/DetailDataWriter.java
index d107299..90c2160 100644
--- a/src/org/torproject/onionoo/DetailDataWriter.java
+++ b/src/org/torproject/onionoo/DetailDataWriter.java
@@ -367,7 +367,7 @@ public class DetailDataWriter {
sb.append(",\n\"as_name\":\""
+ StringEscapeUtils.escapeJavaScript(aSName) + "\"");
}
- if (consensusWeight > 0L) {
+ if (consensusWeight >= 0L) {
sb.append(",\n\"consensus_weight\":"
+ String.valueOf(consensusWeight));
}
More information about the tor-commits
mailing list