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

[tor-commits] [metrics-db/master] Stop rate-limiting torperf downloads in Java.



commit abbdce68584d4184ba29143f60fb29a136501b68
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Sat Dec 1 07:05:34 2012 +0100

    Stop rate-limiting torperf downloads in Java.
    
    Instead, change cronjob to */6, which is possible now that metrics-db has
    five separate modules.
---
 .../ernie/db/torperf/TorperfDownloader.java        |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/org/torproject/ernie/db/torperf/TorperfDownloader.java b/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
index 20549f3..a56d9b0 100644
--- a/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
+++ b/src/org/torproject/ernie/db/torperf/TorperfDownloader.java
@@ -217,10 +217,7 @@ public class TorperfDownloader extends Thread {
      * first to append to it. */
     String lastTimestampLine = null;
     int linesAfterLastTimestampLine = 0;
-    if (outputFile.exists() && outputFile.lastModified() >
-        System.currentTimeMillis() - 330L * 60L * 1000L) {
-      return false;
-    } else if (outputFile.exists()) {
+    if (outputFile.exists()) {
       try {
         BufferedReader br = new BufferedReader(new FileReader(
             outputFile));

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