1
0

IsProcessUp was ditched in favor of GetProcessPIDs.

This commit is contained in:
Alexander Andreev 2022-01-02 05:26:24 +04:00
parent 89cf72df26
commit 98bb98ffed
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -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" {