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 } }