[or-cvs] [metrics-utils/master 1/2] Tweak log-parsing script based on Roger's comments.

karsten at torproject.org karsten at torproject.org
Mon Sep 20 08:40:04 UTC 2010


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Mon, 20 Sep 2010 10:22:25 +0200
Subject: Tweak log-parsing script based on Roger's comments.
Commit: 7c10f0b237d2480ebeccc18422d983555de2a005

---
 visitor/HOWTO        |    2 ++
 visitor/VisiTor.java |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/visitor/HOWTO b/visitor/HOWTO
index 7819aa8..82c9aba 100644
--- a/visitor/HOWTO
+++ b/visitor/HOWTO
@@ -51,6 +51,8 @@ for Linux and Mac OS X; commands for Windows may vary):
 - Download the exit list archives of the relevant time from
   https://metrics.torproject.org/data.html#exitlist and extract them to a
   directory in your working directory, e.g. /home/you/visitor/exitlists/ .
+  Note that as of August 2010, one month of exit lists is 20M compressed
+  and 168M uncompressed.
 
 - Put your web server log in your working directory, too, e.g.
   /home/you/visitor/access_log .
diff --git a/visitor/VisiTor.java b/visitor/VisiTor.java
index 6b99f0e..2407e17 100644
--- a/visitor/VisiTor.java
+++ b/visitor/VisiTor.java
@@ -89,6 +89,11 @@ public final class VisiTor {
         }
       }
     }
+    if (exitListFiles.isEmpty()) {
+      System.out.println("FAILED\nWe didn't find a single exit list. Did "
+          + "you extract the exit list archives? Exiting.");
+      return;
+    }
     System.out.println("OK\nWe found " + exitListFiles.size()
         + " exit lists with the first list being "
         + exitListFiles.first().getName() + " and the last list being "
-- 
1.7.1




More information about the tor-commits mailing list