From 06f1e80216c5fd32f4e0556a5ed32780facbbb60 Mon Sep 17 00:00:00 2001 From: Russ Savage Date: Mon, 19 Oct 2020 11:03:26 -0700 Subject: [PATCH] fix(timeMachine): change derivative to 1s (#19776) --- ui/src/timeMachine/constants/queryBuilder.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/timeMachine/constants/queryBuilder.ts b/ui/src/timeMachine/constants/queryBuilder.ts index 6771e6c934..22cc10415e 100644 --- a/ui/src/timeMachine/constants/queryBuilder.ts +++ b/ui/src/timeMachine/constants/queryBuilder.ts @@ -33,11 +33,11 @@ export const genFlux = ( switch (func) { case 'derivative': { - return `|> derivative(unit: ${period}, nonNegative: false)` + return `|> derivative(unit: 1s, nonNegative: false)` } case 'nonnegative derivative': { - return `|> derivative(unit: ${period}, nonNegative: true)` + return `|> derivative(unit: 1s, nonNegative: true)` } case 'median':