启动时判断是否处于空闲时间决定是否执行fstrim

This commit is contained in:
刘祥超
2024-04-21 23:04:51 +08:00
parent c8f440e24c
commit b1e1c3ebbf
3 changed files with 16 additions and 4 deletions

View File

@@ -44,3 +44,7 @@ func TestRunTicker(t *testing.T) {
t.Log(timeutil.Format("H:i:s"), "run once")
})
}
func TestIsMinHour(t *testing.T) {
t.Log(idles.IsMinHour())
}