Fix top() and bottom() functions by fixing sorting, closes #1313

This commit is contained in:
Alexander Zobnin
2021-09-23 17:44:02 +03:00
parent 750292296c
commit 09c91ccbe4
2 changed files with 8 additions and 6 deletions

View File

@@ -49,6 +49,9 @@ type TimeSeriesMeta struct {
// Item update interval. nil means not supported intervals (flexible, schedule, etc)
Interval *time.Duration
// AggValue is using for sorting purposes
AggValue *float64
}
type AggFunc = func(points []TimePoint) *float64