使用新的方法控制缓存并发写入速度

This commit is contained in:
刘祥超
2023-07-29 09:29:36 +08:00
parent 3793d684fa
commit 33bb06fbc3
12 changed files with 116 additions and 136 deletions

View File

@@ -65,5 +65,11 @@ func CheckDiskIsFast() (speedMB float64, isFast bool, err error) {
return
}
isFast = speedMB > 120
if speedMB > DiskSpeedMB {
DiskSpeedMB = speedMB
DiskIsFast = isFast
}
return
}