[or-cvs] [metrics-db/master] Fix 'all' column in bridge stats.

karsten at torproject.org karsten at torproject.org
Mon Aug 16 12:23:25 UTC 2010


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Mon, 16 Aug 2010 14:16:41 +0200
Subject: Fix 'all' column in bridge stats.
Commit: 6b11f820f7846387eeb508659a0103ded93b1177

---
 .../ernie/db/BridgeStatsFileHandler.java           |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/ernie/db/BridgeStatsFileHandler.java b/src/org/torproject/ernie/db/BridgeStatsFileHandler.java
index 8c96a4f..f37da08 100644
--- a/src/org/torproject/ernie/db/BridgeStatsFileHandler.java
+++ b/src/org/torproject/ernie/db/BridgeStatsFileHandler.java
@@ -143,7 +143,11 @@ public class BridgeStatsFileHandler {
               SortedMap<String, String> obs =
                   new TreeMap<String, String>();
               for (int i = 3; i < parts.length; i++) {
-                obs.put(headers[i], parts[i]);
+                if (headers[i].equals("all")) {
+                  obs.put("zy", parts[i]);
+                } else {
+                  obs.put(headers[i], parts[i]);
+                }
               }
               this.addObs(hashedBridgeIdentity, date, time, obs);
             }
-- 
1.7.1



More information about the tor-commits mailing list