Actually use backup jitter in local backups.

This commit is contained in:
Clark 2024-04-23 11:19:31 -04:00 committed by Cody Henthorne
parent 8fe66a14c5
commit 8a972d93e9

View file

@ -52,7 +52,7 @@ public class LocalBackupListener extends PersistentAlarmManagerListener {
int jitter = (new Random().nextInt(BACKUP_JITTER_WINDOW_SECONDS)) - (BACKUP_JITTER_WINDOW_SECONDS / 2);
next.plusSeconds(jitter);
next = next.plusSeconds(jitter);
if (now.isAfter(next)) {
next = next.plusDays(1);