diff --git a/scripts/ztplot.py b/scripts/ztplot.py index 4762561c5e3a45cf474634d5a04a968f0df94da7..69f2fac63ba0a5ebea65af3b153bf25ec3869f41 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