mirror of https://github.com/prometheus/prometheus
Use timestamp of a sample in deriv() to avoid FP issues (#2958)
With the squaring of the timestamp, we run into the limitations of the 53bit mantissa for a 64bit float. By subtracting away a timestamp of one of the samples (which is how the intercept is used) we avoid this issue in practice as it's unlikely that it is used over a very long time range. Fixes #2674pull/2950/merge
parent
1bf3b91ae0
commit
4c8173acac
Loading…
Reference in new issue