Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit f9afda9

Browse files
committed
make function stable
1 parent 713497e commit f9afda9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

expr/func_keeplastvalue.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ func (s *FuncKeepLastValue) Signature() ([]Arg, []Arg) {
2525
opt: true,
2626
args: []Arg{
2727
ArgInt{val: &s.limit},
28-
ArgString{val: &stub}, // Allow user to specify 'INF' as value. if so, will fall back to maxInt
28+
// Allow user to specify 'INF' as value. if so, will fall back to maxInt
29+
// Ignores any other strings (just like Graphite)
30+
ArgString{val: &stub},
2931
},
3032
},
3133
},

expr/funcs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func init() {
6969
"highestCurrent": {NewHighestLowestConstructor("current", true), true},
7070
"highestMax": {NewHighestLowestConstructor("max", true), true},
7171
"isNonNull": {NewIsNonNull, true},
72-
"keepLastValue": {NewKeepLastValue, false},
72+
"keepLastValue": {NewKeepLastValue, true},
7373
"lowest": {NewHighestLowestConstructor("", false), true},
7474
"lowestAverage": {NewHighestLowestConstructor("average", false), true},
7575
"lowestCurrent": {NewHighestLowestConstructor("current", false), true},

0 commit comments

Comments
 (0)