Skip to content

Commit

Permalink
Simplify increment
Browse files Browse the repository at this point in the history
Co-authored-by: Guy Arbitman <[email protected]>
  • Loading branch information
vitkyrka and guyarb authored Dec 24, 2024
1 parent 264e047 commit 4cf293d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/usm/sharedlibraries/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (w *Watcher) sync() {
// libraries. Scanning twice with the sync interval reduce this risk of
// missing shared libraries due to this.
if scanned < 2 {
w.scannedPIDs[pid] = scanned + 1
w.scannedPIDs[pid]++
err := w.AttachPID(pid)
if err == nil {
log.Debugf("watcher attached to %v via periodic scan", pid)
Expand Down

0 comments on commit 4cf293d

Please sign in to comment.