mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-05 17:10:57 +01:00
cache of known pids: update lastSeen field when we have a match
This commit is contained in:
parent
3d6beb5ec3
commit
7ef15faf62
1 changed files with 1 additions and 0 deletions
|
@ -113,6 +113,7 @@ func getPidFromCache(inode int, inodeKey string, expect string) (int, int) {
|
|||
pidsCache[n].Descriptors = descriptors
|
||||
|
||||
if idxDesc := getPidDescriptorsFromCache(procEntry.Pid, procEntry.FdPath, expect, descriptors); idxDesc != -1 {
|
||||
pidsCache[n].Time = time.Now()
|
||||
return procEntry.Pid, n
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue