mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-04-20 09:26:49 +00:00
Use --revert-pattern to discount proactive restarts
This commit is contained in:
@@ -86,7 +86,7 @@ func (e *logCounter) Count() (count int, err error) {
|
||||
if len(e.buffer.Match(e.pattern)) != 0 {
|
||||
count++
|
||||
}
|
||||
if len(e.buffer.Match(e.revertPattern)) != 0 {
|
||||
if e.revertPattern != "" && len(e.buffer.Match(e.revertPattern)) != 0 {
|
||||
count--
|
||||
}
|
||||
case <-e.clock.After(timeout):
|
||||
|
||||
Reference in New Issue
Block a user