From 1ca61a948ecb44c9760e7f8d23f62a146ddf48a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 24 Feb 2014 16:49:32 +0100 Subject: [PATCH] Fixes #138, Ignore graphite metric annotations with zero values --- src/app/services/annotationsSrv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/annotationsSrv.js b/src/app/services/annotationsSrv.js index f96593db0fa..96320b33a5d 100644 --- a/src/app/services/annotationsSrv.js +++ b/src/app/services/annotationsSrv.js @@ -117,7 +117,7 @@ define([ for (var y = 0; y < target.datapoints.length; y++) { var datapoint = target.datapoints[y]; - if (datapoint[0] !== null) { + if (datapoint[0]) { addAnnotation({ annotation: annotation, time: datapoint[1] * 1000,