1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-31 14:08:06 +08:00

fix: 解决概览页接口报错 500 的问题 (#606)

This commit is contained in:
ssongliu 2023-04-13 10:14:32 +08:00 committed by GitHub
parent a5be9ca226
commit 04a1cff37e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,10 @@ func loadDiskInfo() []dto.DiskInfo {
}
for i := 0; i < len(mounts); i++ {
state, _ := disk.Usage(mounts[i].Mount)
state, err := disk.Usage(mounts[i].Mount)
if err != nil {
continue
}
var itemData dto.DiskInfo
itemData.Path = mounts[i].Mount
itemData.Type = mounts[i].Type