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