File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func main() {
3434 var oomLog * oomparser.OomParser
3535 var err error
3636 if * ignoreOldOOMs {
37- oomLog , err = oomparser .NewFromEndOfFile ()
37+ oomLog , err = oomparser .NewFromNow ()
3838 } else {
3939 oomLog , err = oomparser .New ()
4040 }
Original file line number Diff line number Diff line change @@ -149,9 +149,9 @@ func (p *OomParser) StreamOoms(outStream chan<- *OomInstance) {
149149 klog .Errorf ("exiting analyzeLines. OOM events will not be reported." )
150150}
151151
152- // NewFromEndOfFile initializes an OomParser object that starts reading from the end of the kernel log.
153- // This will ignore any OOM events that occurred before the parser was created .
154- func NewFromEndOfFile () (* OomParser , error ) {
152+ // NewFromNow initializes an OomParser object that returns current OOM events only. In this mode the OomParser object
153+ // will not send OOM events that occurred before the OomParser object was constructed .
154+ func NewFromNow () (* OomParser , error ) {
155155 parser , err := New ()
156156 if err != nil {
157157 return nil , err
You can’t perform that action at this time.
0 commit comments