mirror of https://github.com/minio/minio.git
heal: Trigger auto-heal once each month instead of 24 hours (#7934)
This commit is contained in:
parent
04a152be12
commit
28661c0413
|
@ -119,9 +119,9 @@ func dailySweeper() {
|
|||
break
|
||||
}
|
||||
|
||||
// Perform a sweep round each 24 hours
|
||||
// Perform a sweep round each month
|
||||
for {
|
||||
if time.Since(lastSweepTime) < 24*time.Hour {
|
||||
if time.Since(lastSweepTime) < 30*24*time.Hour {
|
||||
time.Sleep(time.Hour)
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue