From ddb20eb4e24bd50c7c3f4c047ffdf0df4cb7b070 Mon Sep 17 00:00:00 2001 From: atm Date: Fri, 16 Jul 2021 14:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=8E=92=E9=99=A4=E7=BD=91?= =?UTF-8?q?=E5=8D=A1=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/monitor/monitor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/agent/monitor/monitor.go b/cmd/agent/monitor/monitor.go index 2afdb7b451..811753a95f 100644 --- a/cmd/agent/monitor/monitor.go +++ b/cmd/agent/monitor/monitor.go @@ -139,7 +139,7 @@ func getDiskTotalAndUsed() (total uint64, used uint64) { func isListContainsStr(list []string, str string) bool { for i := 0; i < len(list); i++ { - if strings.Contains(list[i], str) { + if strings.Contains(str, list[i]) { return true } }