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

[tor-commits] [onionoo/master] Fix copy-paste bug leading to missing as_name fields.



commit 85d4085cea2c9629a1ef13abca2fbde8d18ec647
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Fri Mar 9 11:56:24 2012 +0100

    Fix copy-paste bug leading to missing as_name fields.
---
 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 35b6484..a65ef36 100644
--- a/src/org/torproject/onionoo/DetailDataWriter.java
+++ b/src/org/torproject/onionoo/DetailDataWriter.java
@@ -358,7 +358,7 @@ public class DetailDataWriter {
         sb.append(",\n\"as_number\":\""
             + StringEscapeUtils.escapeJavaScript(aSNumber) + "\"");
       }
-      if (cityName != null) {
+      if (aSName != null) {
         sb.append(",\n\"as_name\":\""
             + StringEscapeUtils.escapeJavaScript(aSName) + "\"");
       }

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