diff --git a/prog/server.go b/prog/server.go index dde888c..134673f 100644 --- a/prog/server.go +++ b/prog/server.go @@ -48,8 +48,8 @@ func AreProcessesUp(processes *[]string) func(http.ResponseWriter, *http.Request proclist := NewProcessList() for _, proc := range *processes { - isup, _, _ := IsProcessUp(proc) - proclist.AddProcess(proc, isup) + pids, err := GetProcessPIDs(proc) + proclist.AddProcess(proc, err == nil && len(pids) > 0) } if hdr := r.Header.Get("Accept"); hdr == "application/xml" {