From 5d84cf9ea28b2616479e89ba07b050a8fdfcdb2c Mon Sep 17 00:00:00 2001
From: Patrick Godwin <patrick.godwin@ligo.org>
Date: Tue, 19 Feb 2019 07:09:38 -0800
Subject: [PATCH] gstlal_feature_monitor: fix issue with saving target channel
 SNR timeseries

---
 gstlal-burst/bin/gstlal_feature_monitor | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gstlal-burst/bin/gstlal_feature_monitor b/gstlal-burst/bin/gstlal_feature_monitor
index 54fdde034b..a5fd5d11cd 100755
--- a/gstlal-burst/bin/gstlal_feature_monitor
+++ b/gstlal-burst/bin/gstlal_feature_monitor
@@ -173,7 +173,7 @@ class StreamMonitor(object):
                 for metric in ('latency', 'percent_missed'):
                     self.agg_sink.store_and_reduce(metric, {'synchronizer': [metrics['time'], metrics[metric]]}, 'data', tags='job', aggregates=self.data_type)
                 if len(metrics['target_time']) > 0:
-                    self.agg_sink.store_and_reduce(metric, {'synchronizer': [metrics['target_time'], metrics['target_snr']]}, 'data', tags='job', aggregates=self.data_type)
+                    self.agg_sink.store_and_reduce('target_snr', {'synchronizer': [metrics['target_time'], metrics['target_snr']]}, 'data', tags='job', aggregates=self.data_type)
 
                 self.last_save = timestamp
                 logger.info('processed features up to timestamp %.3f, max latency = %.3f s' % (timestamp, max(metrics['latency'])))
-- 
GitLab