mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2026-02-08 19:05:37 +08:00
优化内存缓存限制
This commit is contained in:
@@ -4,6 +4,7 @@ package fsutils
|
||||
|
||||
import (
|
||||
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
|
||||
"github.com/iwind/TeaGo/Tea"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
@@ -67,6 +68,10 @@ func DiskIsFast() bool {
|
||||
}
|
||||
|
||||
func DiskIsExtremelyFast() bool {
|
||||
// 在开发环境下返回false,以便于测试
|
||||
if Tea.IsTesting() {
|
||||
return false
|
||||
}
|
||||
return DiskSpeed == SpeedExtremelyFast
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user