lib/streamaggr: fix incorrect err message for min interval value

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
hagen1778 2024-01-29 09:53:05 +01:00 committed by Aliaksandr Valialkin
parent 5aa0f77d8c
commit 2ff94b2bfa
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -273,7 +273,7 @@ func newAggregator(cfg *Config, pushFunc PushFunc, dedupInterval time.Duration)
return nil, fmt.Errorf("cannot parse `interval: %q`: %w", cfg.Interval, err)
}
if interval <= time.Second {
return nil, fmt.Errorf("the minimum supported aggregation interval is 1s; got %s", interval)
return nil, fmt.Errorf("aggregation interval should be higher than 1s; got %s", interval)
}
// check cfg.StalenessInterval