Remove unused variable and log message in OctreePersistThread

This commit is contained in:
Ryan Huffman 2018-06-11 08:36:13 -07:00
parent 9afc9d19c5
commit 94069c964d

View file

@ -233,14 +233,11 @@ bool OctreePersistThread::backupCurrentFile() {
}
void OctreePersistThread::process() {
auto startedProcessingAt = std::chrono::steady_clock::now();
_tree->update();
auto now = std::chrono::steady_clock::now();
auto timeSinceLastPersist = now - _lastPersistCheck;
qDebug() << "Seconds since last persist: " << std::chrono::duration_cast<std::chrono::seconds>(timeSinceLastPersist).count();
if (timeSinceLastPersist > _persistInterval) {
_lastPersistCheck = now;
persist();