Merge pull request #183 from merc1031/master

round up maxDataPoints to nearest integer in request. graphite 0.9.x and...
This commit is contained in:
Torkel Ödegaard
2014-03-10 11:11:24 +01:00

View File

@@ -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) {