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

[tor-commits] [metrics-web/master] Fix consensus params check.



commit 5a028c663900accdf6f9a88572fee8e87086c7ff
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Oct 31 08:53:29 2011 +0100

    Fix consensus params check.
---
 src/org/torproject/chc/NagiosReport.java |    2 +-
 src/org/torproject/chc/StdOutReport.java |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/org/torproject/chc/NagiosReport.java b/src/org/torproject/chc/NagiosReport.java
index a9f27af..e550625 100644
--- a/src/org/torproject/chc/NagiosReport.java
+++ b/src/org/torproject/chc/NagiosReport.java
@@ -171,7 +171,7 @@ public class NagiosReport implements Report {
       Map<String, String> voteConsensusParams =
           vote.getConsensusParams();
       boolean conflictOrInvalid = false;
-      if (voteConsensusParams == null) {
+      if (voteConsensusParams != null) {
         for (Map.Entry<String, String> e :
             voteConsensusParams.entrySet()) {
           if (!downloadedConsensus.getConsensusParams().containsKey(
diff --git a/src/org/torproject/chc/StdOutReport.java b/src/org/torproject/chc/StdOutReport.java
index f683ae6..805343f 100644
--- a/src/org/torproject/chc/StdOutReport.java
+++ b/src/org/torproject/chc/StdOutReport.java
@@ -211,7 +211,7 @@ public class StdOutReport implements Report {
       Map<String, String> voteConsensusParams =
           vote.getConsensusParams();
       boolean conflictOrInvalid = false;
-      if (voteConsensusParams == null) {
+      if (voteConsensusParams != null) {
         for (Map.Entry<String, String> e :
             voteConsensusParams.entrySet()) {
           if (!downloadedConsensus.getConsensusParams().containsKey(

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