strconv.Atoi fix

This commit is contained in:
鲁晓敏 2015-11-12 19:27:26 +08:00
parent 8e3d97a171
commit 5b2fb16b60
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ func (g *phpfpm) gatherServer(addr string, acc plugins.Accumulator) error {
}
socketAddr := strings.Split(u.Host, ":")
fcgiIp := socketAddr[0]
fcgiPort := strconv.Atoi(socketAddr[1])
fcgiPort,_ := strconv.Atoi(socketAddr[1])
fcgiAddr = u.Host
fcgi, _ = NewClient(fcgiIp, fcgiPort)
} else {