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

[tor-commits] [metrics-web/master] Clean up ArchiveReader a bit.



commit bfa21af59bdae4ee9c924792e6606a7829d0941c
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Mar 21 16:23:37 2012 +0100

    Clean up ArchiveReader a bit.
---
 src/org/torproject/ernie/cron/ArchiveReader.java |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/src/org/torproject/ernie/cron/ArchiveReader.java b/src/org/torproject/ernie/cron/ArchiveReader.java
index 4befe51..e4f6b2a 100644
--- a/src/org/torproject/ernie/cron/ArchiveReader.java
+++ b/src/org/torproject/ernie/cron/ArchiveReader.java
@@ -48,8 +48,6 @@ public class ArchiveReader {
    */
   private Logger logger;
 
-  private SimpleDateFormat dateTimeFormat;
-
   public ArchiveReader(RelayDescriptorDatabaseImporter rddi,
       BridgeStatsFileHandler bsfh, File archivesDirectory,
       File statsDirectory, boolean keepImportHistory) {
@@ -62,10 +60,6 @@ public class ArchiveReader {
     this.rddi = rddi;
     this.bsfh = bsfh;
 
-    this.dateTimeFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
-    this.dateTimeFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
-
-    int parsedFiles = 0, ignoredFiles = 0;
     this.logger = Logger.getLogger(ArchiveReader.class.getName());
     if (archivesDirectory.exists()) {
       logger.fine("Importing files in directory " + archivesDirectory
@@ -99,9 +93,7 @@ public class ArchiveReader {
       }
     }
 
-    logger.info("Finished importing relay descriptors from local "
-        + "directory:\nParsed " + parsedFiles + ", ignored "
-        + ignoredFiles + " files.");
+    logger.info("Finished importing relay descriptors.");
   }
 
   private void addRelayNetworkStatusConsensus(



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