From abbba1dd96899f9382d6ce5f7c3b084bf2fe2ecf Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Sat, 23 Nov 2019 09:26:09 +0100
Subject: [PATCH] Fix skipping of plots

---
 scripts/ztplot.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/ztplot.py b/scripts/ztplot.py
index 4762561..69f2fac 100755
--- a/scripts/ztplot.py
+++ b/scripts/ztplot.py
@@ -159,7 +159,7 @@ class ZTPlot(kp.Module):
             'overlays'] or n_hits > self.records[
                 'n_hits'] or n_triggered_hits > self.records["n_triggered_hits"]
 
-        if not is_new_record or (utc_timestamp - self.last_plot_time) < 60:
+        if (utc_timestamp - self.last_plot_time) < 60 and not is_new_record:
             self.log.debug("Skipping plot...")
             return
 
-- 
GitLab