Skip to content

Commit

Permalink
Fixing typo in eval node code
Browse files Browse the repository at this point in the history
  • Loading branch information
sputnik13 committed Apr 7, 2017
1 parent 91de9f0 commit 840a916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (e *EvalNode) runEval(snapshot []byte) error {
p.Fields, p.Tags, err = e.eval(p.Time, p.Group, p.Fields, p.Tags)
if err != nil {
e.incrementErrorCount()
if !e.e.QuiteFlag {
if !e.e.QuietFlag {
e.logger.Println("E!", err)
}
e.timer.Stop()
Expand All @@ -109,7 +109,7 @@ func (e *EvalNode) runEval(snapshot []byte) error {
b.Points[i].Fields, b.Points[i].Tags, err = e.eval(p.Time, b.Group, p.Fields, p.Tags)
if err != nil {
e.incrementErrorCount()
if !e.e.QuiteFlag {
if !e.e.QuietFlag {
e.logger.Println("E!", err)
}
// Remove bad point
Expand Down
4 changes: 2 additions & 2 deletions pipeline/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type EvalNode struct {
KeepList []string

// tick:ignore
QuiteFlag bool `tick:"Quiet"`
QuietFlag bool `tick:"Quiet"`
}

func newEvalNode(e EdgeType, exprs []*ast.LambdaNode) *EvalNode {
Expand Down Expand Up @@ -160,6 +160,6 @@ func (e *EvalNode) Keep(fields ...string) *EvalNode {
// Suppress errors during evaluation.
// tick:property
func (e *EvalNode) Quiet() *EvalNode {
e.QuiteFlag = true
e.QuietFlag = true
return e
}

0 comments on commit 840a916

Please sign in to comment.