mirror of
https://github.com/minio/minio.git
synced 2025-03-31 17:53:43 -04:00
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
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform a sweep round each 24 hours
|
// Perform a sweep round each month
|
||||||
for {
|
for {
|
||||||
if time.Since(lastSweepTime) < 24*time.Hour {
|
if time.Since(lastSweepTime) < 30*24*time.Hour {
|
||||||
time.Sleep(time.Hour)
|
time.Sleep(time.Hour)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user