Skip to content

Commit

Permalink
解决排除网卡不生效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
acgpiano committed Jul 16, 2021
1 parent f43354f commit ddb20eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/monitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit ddb20eb

Please sign in to comment.