Fixes #138, Ignore graphite metric annotations with zero values

This commit is contained in:
Torkel Ödegaard 2014-02-24 16:49:32 +01:00
parent e13c81e25b
commit 1ca61a948e

View File

@ -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,