From a0cfdec52e0e3e0c8bbe39590a0a81a0cb6a876d Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 29 Nov 2021 06:06:00 -0500 Subject: [PATCH] Dashboard: Fix queries for panels with non-integer widths (#42420) (#42423) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * dashboard: fix non-integer panel widths * switched to better supported function (cherry picked from commit 8508ad79b227eeb92dc422e2d2a884b736507423) Co-authored-by: Gábor Farkas --- public/app/features/dashboard/state/PanelModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/state/PanelModel.ts b/public/app/features/dashboard/state/PanelModel.ts index 8202b03286e..7bfc7c72a7d 100644 --- a/public/app/features/dashboard/state/PanelModel.ts +++ b/public/app/features/dashboard/state/PanelModel.ts @@ -313,7 +313,7 @@ export class PanelModel implements DataConfigSource, IPanelModel { timezone: dashboardTimezone, timeRange: timeData.timeRange, timeInfo: timeData.timeInfo, - maxDataPoints: this.maxDataPoints || width, + maxDataPoints: this.maxDataPoints || Math.floor(width), minInterval: this.interval, scopedVars: this.scopedVars, cacheTimeout: this.cacheTimeout,