Example #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
}
Example #2
0
func NewProcess(sysProcess system.Process, ignoreList []string) *Process {
	executable := sysProcess.Executable()
	running, _ := sysProcess.Running()
	return &Process{
		Executable: executable,
		Running:    running.(bool),
	}
}