mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 20:49:03 +08:00
fix: 概览页磁盘显示过滤 /snap (#5196)
This commit is contained in:
parent
409e90d2c5
commit
312c19e3cc
@ -222,7 +222,10 @@ func loadDiskInfo() []dto.DiskInfo {
|
||||
if len(fields) < 7 {
|
||||
continue
|
||||
}
|
||||
if fields[1] == "tmpfs" {
|
||||
if strings.HasPrefix(fields[6], "/snap") || len(strings.Split(fields[6], "/")) > 10 {
|
||||
continue
|
||||
}
|
||||
if strings.TrimSpace(fields[1]) == "tmpfs" {
|
||||
continue
|
||||
}
|
||||
if strings.Contains(fields[2], "K") {
|
||||
|
Loading…
Reference in New Issue
Block a user