Clean up std::chrono usage in DomainContentBackupManager

This commit is contained in:
Ryan Huffman 2018-02-26 15:39:33 -08:00
parent f23f751e80
commit 975bfa6809
2 changed files with 3 additions and 3 deletions

View file

@ -38,7 +38,7 @@
#include "DomainServer.h"
const std::chrono::milliseconds DomainContentBackupManager::DEFAULT_PERSIST_INTERVAL { 30 * 1000 }; // every 30 seconds
const std::chrono::seconds DomainContentBackupManager::DEFAULT_PERSIST_INTERVAL { 30 };
// Backup format looks like: daily_backup-TIMESTAMP.zip
static const QString DATETIME_FORMAT { "yyyy-MM-dd_HH-mm-ss" };
static const QString DATETIME_FORMAT_RE { "\\d{4}-\\d{2}-\\d{2}_\\d{2}-\\d{2}-\\d{2}" };

View file

@ -50,7 +50,7 @@ public:
qint64 lastBackupSeconds;
};
static const std::chrono::milliseconds DEFAULT_PERSIST_INTERVAL;
static const std::chrono::seconds DEFAULT_PERSIST_INTERVAL;
DomainContentBackupManager(const QString& rootBackupDirectory,
const QVariantList& settings,
@ -99,7 +99,7 @@ private:
std::atomic<bool> _isRecovering { false };
QString _recoveryFilename { };
std::chrono::time_point<std::chrono::high_resolution_clock> _lastCheck;
p_high_resolution_clock::time_point _lastCheck;
std::vector<BackupRule> _backupRules;
};