summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmonitor/josef_monitor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/monitor/josef_monitor.py b/monitor/josef_monitor.py
index f7017fa..7160145 100755
--- a/monitor/josef_monitor.py
+++ b/monitor/josef_monitor.py
@@ -233,6 +233,10 @@ class ctlog:
print ERROR_STR + "New tree smaller than previous tree (%d < %d) in %s" % \
(new["tree_size"], old["tree_size"], self.name)
self.log(ERROR_STR + "New tree is smaller than old tree! Old:" + str(old) + " New:" + str(new))
+
+ if new["timestamp"] < old["timestamp"]:
+ self.log(ERROR_STR + "Regression in timestamps! Old:" + str(old) + " New:" + str(new))
+ print ERROR_STR + " Regression in timestamps in " + self.name
else:
age = time.time() - new["timestamp"]/1000
sth_time = datetime.datetime.fromtimestamp(new['timestamp'] / 1000, UTC()).strftime("%Y-%m-%d %H:%M:%S")