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

[or-cvs] [metrics-db/master] Fix bug in new dirreq-stats code.



Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date: Tue, 23 Nov 2010 14:40:27 +0100
Subject: Fix bug in new dirreq-stats code.
Commit: 7e8f8d80497b1eb4bd7a58b3e191f44d0b52c116

---
 .../ernie/db/DirreqStatsFileHandler.java           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/org/torproject/ernie/db/DirreqStatsFileHandler.java b/src/org/torproject/ernie/db/DirreqStatsFileHandler.java
index 6fc9014..1cbbad5 100644
--- a/src/org/torproject/ernie/db/DirreqStatsFileHandler.java
+++ b/src/org/torproject/ernie/db/DirreqStatsFileHandler.java
@@ -263,7 +263,7 @@ public class DirreqStatsFileHandler {
               + country;
           if (insertRows.containsKey(key)) {
             String insertRow = insertRows.remove(key);
-            long oldUsers = rs.getLong(4);
+            long oldUsers = rs.getLong(5);
             long newUsers = Long.parseLong(insertRow.split(",")[0]);
             if (oldUsers != newUsers) {
               updateRows.put(key, insertRow);
-- 
1.7.1