Merge pull request #132 from acgpiano/master

解决排除网卡不生效的bug

Co-authored-by: acgpiano <15900800+acgpiano@users.noreply.github.com>
This commit is contained in:
naiba 2021-07-16 09:56:16 +03:00 committed by GitHub
commit f9cd5ef59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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