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

This commit is contained in:
GoEdgeLab
2024-04-21 23:04:51 +08:00
parent 4552099e0e
commit 498b4556e2
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())
}