[tor-commits] [onionoo/master] Don't process server descriptors more than once.

karsten at torproject.org karsten at torproject.org
Sun Aug 17 07:06:45 UTC 2014


commit 65bbe71597515841f76895f550b19ac066ac9818
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri Aug 15 09:47:31 2014 +0200

    Don't process server descriptors more than once.
---
 .../org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java   |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
index 09eef9b..979c49b 100644
--- a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
+++ b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
@@ -111,7 +111,7 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
       detailsStatus = new DetailsStatus();
     } else if (detailsStatus.getDescPublished() != null &&
         publishedDateTime.compareTo(
-            detailsStatus.getDescPublished()) < 0) {
+            detailsStatus.getDescPublished()) <= 0) {
       return;
     }
     String lastRestartedString = DateTimeHelper.format(
@@ -233,7 +233,7 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
       detailsStatus = new DetailsStatus();
     } else if (detailsStatus.getDescPublished() != null &&
         publishedDateTime.compareTo(
-            detailsStatus.getDescPublished()) < 0) {
+            detailsStatus.getDescPublished()) <= 0) {
       return;
     }
     String lastRestartedString = DateTimeHelper.format(





More information about the tor-commits mailing list