benrubson 9 years ago
parent
commit
9797845460
1 changed files with 2 additions and 1 deletions
  1. 2 1
      public/app/plugins/panel/graph/graph_tooltip.js

+ 2 - 1
public/app/plugins/panel/graph/graph_tooltip.js

@@ -26,8 +26,9 @@ function ($) {
         }
         }
       }
       }
       // Special case of a non stepped line, highlight the very last point just before a null point
       // Special case of a non stepped line, highlight the very last point just before a null point
-      while(!series.lines.steps && series.datapoints.points[initial] != null && j>0 && series.datapoints.points[j-ps] == null)
+      while(!series.lines.steps && series.datapoints.points[initial] != null && j>0 && series.datapoints.points[j-ps] == null) {
         j-=ps;
         j-=ps;
+      }
       return Math.max(j - ps,  0)/ps;
       return Math.max(j - ps,  0)/ps;
     };
     };