Skip to content

Commit

Permalink
fix(eventsource,etw): Correct file object lookup misses expvar
Browse files Browse the repository at this point in the history
Correct the condition to only increment missing
file object lookups if the request is coming from
non-CloseFile event.
  • Loading branch information
rabbitstack committed Oct 16, 2024
1 parent c161273 commit cc986f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/etw/processors/fs_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (f *fsProcessor) processEvent(e *kevent.Kevent) (*kevent.Kevent, error) {
}

// ignore object misses that are produced by CloseFile
if fileinfo == nil && e.IsCloseFile() {
if fileinfo == nil && !e.IsCloseFile() {
fileObjectMisses.Add(1)
}
if e.IsDeleteFile() {
Expand Down

0 comments on commit cc986f5

Please sign in to comment.