[tor-commits] [onionoo/master] Fix bug where we never updated bridge descriptor details.
karsten at torproject.org
karsten at torproject.org
Wed Nov 5 08:48:39 UTC 2014
commit 0c604542be39d80470785b29ddfa157239f4a8c3
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Wed Nov 5 09:46:56 2014 +0100
Fix bug where we never updated bridge descriptor details.
Spotted by eli in #13658.
---
.../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 f09a46c..9f748db 100644
--- a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
+++ b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
@@ -230,8 +230,8 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
DetailsStatus.class, true, fingerprint);
if (detailsStatus == null) {
detailsStatus = new DetailsStatus();
- } else if (detailsStatus.getDescPublished() <=
- descriptor.getPublishedMillis()) {
+ } else if (descriptor.getPublishedMillis() <=
+ detailsStatus.getDescPublished()) {
return;
}
long lastRestartedMillis = descriptor.getPublishedMillis()
More information about the tor-commits
mailing list