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()
|
proclist := NewProcessList()
|
||||||
|
|
||||||
for _, proc := range *processes {
|
for _, proc := range *processes {
|
||||||
isup, _, _ := IsProcessUp(proc)
|
pids, err := GetProcessPIDs(proc)
|
||||||
proclist.AddProcess(proc, isup)
|
proclist.AddProcess(proc, err == nil && len(pids) > 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
if hdr := r.Header.Get("Accept"); hdr == "application/xml" {
|
if hdr := r.Header.Get("Accept"); hdr == "application/xml" {
|
||||||
|
Loading…
Reference in New Issue
Block a user