From ec57e59154faeb10c3c6ca584f8122ac0d5f828a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sun, 23 Jun 2019 15:53:56 +0300 Subject: [PATCH] app/vmselect/promql: use `deriv_fast` instead of `deriv` in `ttf`, since `deriv` calculations have been changed recently --- app/vmselect/promql/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/vmselect/promql/parser.go b/app/vmselect/promql/parser.go index 33bc08454..fddfd8c69 100644 --- a/app/vmselect/promql/parser.go +++ b/app/vmselect/promql/parser.go @@ -18,7 +18,7 @@ func getDefaultWithArgExprs() []*withArgExpr { // ttf - time to fuckup `ttf(freev) = smooth_exponential( - clamp_max(clamp_max(-freev, 0) / clamp_max(deriv(freev), 0), 365*24*3600), + clamp_max(clamp_max(-freev, 0) / clamp_max(deriv_fast(freev), 0), 365*24*3600), clamp_max(step()/300, 1) )`,