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

This commit is contained in:
Anis Elleuch 2019-07-16 00:03:42 +01:00 committed by kannappanr
parent 04a152be12
commit 28661c0413
1 changed files with 2 additions and 2 deletions

View File

@ -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
}