解决排除网卡不生效的bug

This commit is contained in:
atm 2021-07-16 14:49:15 +08:00
parent f43354fe73
commit ddb20eb4e2

View File

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