mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-03 23:20:25 +08:00
提高硬盘TRIM运行时负载要求
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user