Filter threads from process count

Found like 85 sockets in /run/user/1000 that weren't getting cleaned up
This commit is contained in:
Ottatop 2024-01-14 12:01:11 -06:00
parent 1cdc6fe42d
commit 3ff1f4e737

View file

@ -250,6 +250,7 @@ impl State {
let multiple_instances = self
.system_processes
.processes_by_exact_name("pinnacle")
.filter(|proc| proc.thread_kind().is_none())
.count()
> 1;