Преглед изворни кода

Fixes #138, Ignore graphite metric annotations with zero values

Torkel Ödegaard пре 12 година
родитељ
комит
1ca61a948e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/app/services/annotationsSrv.js

+ 1 - 1
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,