ソースを参照

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,