集群设置增加自动硬盘TRIM选项

This commit is contained in:
GoEdgeLab
2024-04-04 17:04:28 +08:00
parent 77ae8f848b
commit 329695f0d0
5 changed files with 20 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ import (
"strings"
)
// CheckDiskPartitions 检查服务器盘空间
// CheckDiskPartitions 检查服务器盘空间
func CheckDiskPartitions(thresholdPercent float64) (path string, usage uint64, usagePercent float64, shouldWarning bool) {
partitions, err := disk.Partitions(false)
if err != nil {