diff --git a/util/SystemInfo.go b/util/SystemInfo.go index 920f2d4..9735f75 100644 --- a/util/SystemInfo.go +++ b/util/SystemInfo.go @@ -117,6 +117,10 @@ func GetDiskInfo() { //oracle arm cpu core 被误认为分区 return } + if find := strings.Contains(dp.String(), "/snap/lxd"); find { + //oracle arm cpu loop 被误认为分区 + return + } fmt.Println(dp) diskUsed, _ := disk.Usage(dp.Mountpoint) fmt.Printf("分区总大小: %d MB \n", diskUsed.Total/1024/1024)