From 5b2fb16b608813c96e3cead667f0c1ecc6276ac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=99=93=E6=95=8F?= Date: Thu, 12 Nov 2015 19:27:26 +0800 Subject: [PATCH] strconv.Atoi fix --- plugins/phpfpm/phpfpm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/phpfpm/phpfpm.go b/plugins/phpfpm/phpfpm.go index 26b75a5d7..07dcf6191 100644 --- a/plugins/phpfpm/phpfpm.go +++ b/plugins/phpfpm/phpfpm.go @@ -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 {