app/vmselect/promql: use deriv_fast instead of deriv in ttf, since deriv calculations have been changed recently

This commit is contained in:
Aliaksandr Valialkin 2019-06-23 15:53:56 +03:00
parent 516062b162
commit ec57e59154

View file

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