Explorar el Código

round up maxDataPoints to nearest integer in request. graphite 0.9.x and 0.9.12 seem to treat decimal maxDataPoints badly returning enourmous amounts of data

Leonidas Loucas hace 12 años
padre
commit
7f5c6ca18d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/app/panels/graphite/module.js

+ 1 - 1
src/app/panels/graphite/module.js

@@ -230,7 +230,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
     $scope.updateTimeRange = function () {
       $scope.range = filterSrv.timeRange();
       $scope.rangeUnparsed = filterSrv.timeRange(false);
-      $scope.resolution = ($(window).width() * ($scope.panel.span / 12)) / 2;
+      $scope.resolution = Math.ceil(($(window).width() * ($scope.panel.span / 12)) / 2);
       $scope.interval = '10m';
 
       if ($scope.range) {