[tor-commits] [metrics-web/master] Remember when we last warned about something.

karsten at torproject.org karsten at torproject.org
Fri Nov 11 06:45:22 UTC 2011


commit d9726bc3ac813289874d5375019c8aeffb2ba004
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Fri Nov 11 07:45:00 2011 +0100

    Remember when we last warned about something.
---
 src/org/torproject/chc/StatusFileReport.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/org/torproject/chc/StatusFileReport.java b/src/org/torproject/chc/StatusFileReport.java
index 4bf1353..4aef195 100644
--- a/src/org/torproject/chc/StatusFileReport.java
+++ b/src/org/torproject/chc/StatusFileReport.java
@@ -150,6 +150,9 @@ public class StatusFileReport implements Report {
     if (newSb.length() > 0) {
       this.allWarnings = allSb.toString();
       this.newWarnings = newSb.toString();
+      for (String message : warningStrings.keySet()) {
+        this.lastWarned.put(message, now);
+      }
     }
   }
 



More information about the tor-commits mailing list