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

[tor-commits] [metrics-db/master] fixup! Remember longer than 2 days that we stored a microdesc.



commit 9b63a4a61e9a46619e4465bf17f0abf307431c66
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Sun Jan 26 10:15:44 2014 +0100

    fixup! Remember longer than 2 days that we stored a microdesc.
---
 src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java b/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java
index b8e16f6..a9cb5a7 100644
--- a/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java
+++ b/src/org/torproject/ernie/db/relaydescs/ArchiveWriter.java
@@ -514,7 +514,7 @@ public class ArchiveWriter extends Thread {
     if (this.store(MICRODESCRIPTOR_ANNOTATION, data, outputFiles)) {
       this.storedMicrodescriptorsCounter++;
     }
-    if (validAfter < this.now - 40L * 24L * 60L * 60L * 1000L) {
+    if (this.now - validAfter < 40L * 24L * 60L * 60L * 1000L) {
       if (!this.storedMicrodescriptors.containsKey(validAfter)) {
         this.storedMicrodescriptors.put(validAfter,
             new HashSet<String>());

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