func NewProcess(sysProcess system.Process, config util.Config) (*Process, error) { executable := sysProcess.Executable() running, _ := sysProcess.Running() return &Process{ Executable: executable, Running: running.(bool), }, nil }
func NewProcess(sysProcess system.Process, ignoreList []string) *Process { executable := sysProcess.Executable() running, _ := sysProcess.Running() return &Process{ Executable: executable, Running: running.(bool), } }