Skip to content

Commit

Permalink
Merge pull request #132 from acgpiano/master
Browse files Browse the repository at this point in the history
解决排除网卡不生效的bug

Co-authored-by: acgpiano <[email protected]>
  • Loading branch information
naiba and acgpiano authored Jul 16, 2021
2 parents f43354f + ddb20eb commit f9cd5ef
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 f9cd5ef

Please sign in to comment.