no message

This commit is contained in:
2025-03-08 02:47:58 +03:00
parent c4157fc30b
commit e123600e06
3 changed files with 5 additions and 20 deletions

View File

@@ -10,6 +10,10 @@ public class BackUpsChecker extends RepositoryServerClient {
server = server_in;
}
@Override
protected int getSleepMillis() {
return 60000;
}
@Override
protected void perform() throws Exception {
Calendar rightNow = Calendar.getInstance();
int hour = rightNow.get(Calendar.HOUR_OF_DAY);

View File

@@ -67,7 +67,6 @@ public abstract class RepositoryServer<D extends Database> {
public void run() {
while (true) {
backUpsChecker.Perform();
Utils_.sleep(60000);
}
}
});
@@ -377,8 +376,6 @@ public abstract class RepositoryServer<D extends Database> {
//-
// Чистка старых бекапов на самом сервере.
Utils.keepNewFiles(todayBackUp.getParentFile(), 2);
if (!todayBackUpArchive.exists()) {
FileUtils.forceMkdir(todayBackUp);
//--