heal: Trigger auto-heal once each month instead of 24 hours (#7934)

master
Anis Elleuch 5 years ago committed by kannappanr
parent 04a152be12
commit 28661c0413
  1. 4
      cmd/daily-sweeper.go

@ -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…
Cancel
Save