show running process in process viewer and add limiting to the notification system

This commit is contained in:
KingKDot
2026-05-16 23:19:46 -05:00
parent e2ef4a375f
commit d691c5b804
11 changed files with 207 additions and 3 deletions
@@ -6,6 +6,7 @@ package handlers
import (
"bufio"
"bytes"
"os"
"os/exec"
"strconv"
"strings"
@@ -15,6 +16,7 @@ import (
)
func listProcesses() ([]wire.ProcessInfo, error) {
selfPID := int32(os.Getpid())
cmd := exec.Command("ps", "aux")
output, err := cmd.Output()
@@ -78,6 +80,7 @@ func listProcesses() ([]wire.ProcessInfo, error) {
Memory: memBytes,
Username: username,
Type: procType,
Self: int32(pid) == selfPID,
})
}