mirror of https://github.com/prometheus/prometheus
fix word 'substracting' to 'subtracting' (#5822)
Signed-off-by: czm <zhongming.chang@daocloud.io>pull/5823/head
parent
a9dea68ee6
commit
ead0933dd9
|
@ -574,7 +574,7 @@ func (ng *Engine) populateSeries(ctx context.Context, q storage.Queryable, s *Ev
|
||||||
|
|
||||||
// We need to make sure we select the timerange selected by the subquery.
|
// We need to make sure we select the timerange selected by the subquery.
|
||||||
// TODO(gouthamve): cumulativeSubqueryOffset gives the sum of range and the offset
|
// TODO(gouthamve): cumulativeSubqueryOffset gives the sum of range and the offset
|
||||||
// we can optimise it by separating out the range and offsets, and substracting the offsets
|
// we can optimise it by separating out the range and offsets, and subtracting the offsets
|
||||||
// from end also.
|
// from end also.
|
||||||
subqOffset := ng.cumulativeSubqueryOffset(path)
|
subqOffset := ng.cumulativeSubqueryOffset(path)
|
||||||
offsetMilliseconds := durationMilliseconds(subqOffset)
|
offsetMilliseconds := durationMilliseconds(subqOffset)
|
||||||
|
|
Loading…
Reference in New Issue