IsProcessUp was ditched in favor of GetProcessPIDs.
This commit is contained in:
parent
89cf72df26
commit
98bb98ffed
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user