app/vmselect/promql: update comment to be consistent with an implementation

Signed-off-by: Zakhar Bessarab <z.bessarab@victoriametrics.com>
This commit is contained in:
Zakhar Bessarab 2024-07-02 15:58:11 +04:00
parent 52d7d601fe
commit d861062769
No known key found for this signature in database
GPG key ID: 932B34D6FE062023

View file

@ -1044,7 +1044,7 @@ func fixBrokenBuckets(i int, xss []leTimeseries) {
// Buckets are already sorted by le, so their values must be in ascending order, // Buckets are already sorted by le, so their values must be in ascending order,
// since the next bucket includes all the previous buckets. // since the next bucket includes all the previous buckets.
// If the next bucket has lower value than the current bucket, // If the next bucket has lower value than the current bucket,
// then the current bucket must be substituted with the next bucket value. // then the next bucket must be substituted with the current bucket value.
// See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2819 // See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2819
if len(xss) < 2 { if len(xss) < 2 {
return return