Fix: update cache if a process was found (#850)

This commit is contained in:
icpz 2020-07-30 17:15:06 +08:00 committed by GitHub
parent 77d6f9ae6f
commit 791d203b5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,8 @@ func (ps *Process) Match(metadata *C.Metadata) bool {
return false
}
processCache.Set(key, name)
cached = name
}