mirror of
https://github.com/oneclickvirt/basics.git
synced 2026-04-23 00:37:11 +08:00
fix: 添加挂载路径显示,添加对/run路径的特殊处理
This commit is contained in:
+2
-2
@@ -101,7 +101,7 @@ func CheckSystemInfo(language string) string {
|
||||
if i < len(ret.Percentage) && ret.Percentage[i] != "" {
|
||||
res += fmt.Sprintf(" [%s]", ret.Percentage[i])
|
||||
if ret.DiskRealPath[i] != "" {
|
||||
res += fmt.Sprintf(" %s", ret.DiskRealPath[i])
|
||||
res += fmt.Sprintf(" (%s)\n", ret.DiskRealPath[i])
|
||||
} else {
|
||||
res += "\n"
|
||||
}
|
||||
@@ -168,7 +168,7 @@ func CheckSystemInfo(language string) string {
|
||||
if i < len(ret.Percentage) && ret.Percentage[i] != "" {
|
||||
res += fmt.Sprintf(" [%s]", ret.Percentage[i])
|
||||
if ret.DiskRealPath[i] != "" {
|
||||
res += fmt.Sprintf(" %s", ret.DiskRealPath[i])
|
||||
res += fmt.Sprintf(" (%s)\n", ret.DiskRealPath[i])
|
||||
} else {
|
||||
res += "\n"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user