oracle arm cpu loop 被误认为分区

master
dustoair 3 years ago
parent fbb75c3d35
commit 185d662d8c

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

Loading…
Cancel
Save