Graphite: Changed range expansion from 1m to 1s (#19246)

Fixes #11472
This commit is contained in:
Torkel Ödegaard 2019-09-20 14:37:03 +02:00 committed by GitHub
parent 2a1e130000
commit d95318b325
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,11 +220,11 @@ export class GraphiteDatasource {
// exists for the specified range // exists for the specified range
if (roundUp) { if (roundUp) {
if (date.get('s')) { if (date.get('s')) {
date.add(1, 'm'); date.add(1, 's');
} }
} else if (roundUp === false) { } else if (roundUp === false) {
if (date.get('s')) { if (date.get('s')) {
date.subtract(1, 'm'); date.subtract(1, 's');
} }
} }