提高硬盘TRIM运行时负载要求

This commit is contained in:
GoEdgeLab
2024-04-09 11:39:16 +08:00
parent b015e113f3
commit aee3f63562

View File

@@ -33,7 +33,7 @@ func (this *TrimDisksTask) Start() {
// prevent system overload
for i := 0; i < 24; i++ {
stat, loadErr := load.Avg()
if loadErr == nil && stat != nil && stat.Load1 > 20 {
if loadErr == nil && stat != nil && stat.Load1 > 15 {
// wait load downgrade
time.Sleep(1 * time.Hour)
} else {