Dashboard: Fix queries for panels with non-integer widths (#42420)

* dashboard: fix non-integer panel widths

* switched to better supported function
This commit is contained in:
Gábor Farkas 2021-11-29 11:49:53 +01:00 committed by GitHub
parent 3285742196
commit 8508ad79b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,