commit abbdce68584d4184ba29143f60fb29a136501b68 Author: Karsten Loesing karsten.loesing@gmx.net 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@lists.torproject.org