优化高速硬盘下的缓存

This commit is contained in:
GoEdgeLab
2023-08-04 16:32:15 +08:00
parent dd66e1d322
commit 43420ce4ce
2 changed files with 5 additions and 1 deletions

View File

@@ -66,6 +66,10 @@ func DiskIsFast() bool {
return DiskSpeed == SpeedExtremelyFast || DiskSpeed == SpeedFast
}
func DiskIsExtremelyFast() bool {
return DiskSpeed == SpeedExtremelyFast
}
var countWrites int32 = 0
func WriteReady() bool {