From 76a2d3b17a952ef4dbe685476bb6ede386919054 Mon Sep 17 00:00:00 2001 From: Christian Heinemann Date: Tue, 5 Nov 2024 22:53:39 +0100 Subject: [PATCH] debug code removed --- source/Gui/AutosaveWindow.cpp | 3 ++- source/PersisterImpl/PersisterWorker.cpp | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/source/Gui/AutosaveWindow.cpp b/source/Gui/AutosaveWindow.cpp index 6be8982ae..a4cbe2c45 100644 --- a/source/Gui/AutosaveWindow.cpp +++ b/source/Gui/AutosaveWindow.cpp @@ -22,6 +22,7 @@ namespace { auto constexpr RightColumnWidth = 200.0f; auto constexpr AutosaveSenderId = "Autosave"; + auto constexpr PeakDetectionInterval = 30; //in seconds } AutosaveWindow::AutosaveWindow() @@ -365,7 +366,7 @@ void AutosaveWindow::processAutomaticSavepoints() if (_catchPeaks != CatchPeaks_None) { auto minSinceLastCatchPeak = std::chrono::duration_cast(std::chrono::steady_clock::now() - _lastPeakTimepoint).count(); - if (minSinceLastCatchPeak >= 10) { + if (minSinceLastCatchPeak >= PeakDetectionInterval) { _peakProcessor->executeTask( [&](auto const& senderId) { return _persisterFacade->scheduleGetPeakSimulation( diff --git a/source/PersisterImpl/PersisterWorker.cpp b/source/PersisterImpl/PersisterWorker.cpp index 359c427e2..8f4ef62d2 100644 --- a/source/PersisterImpl/PersisterWorker.cpp +++ b/source/PersisterImpl/PersisterWorker.cpp @@ -630,10 +630,6 @@ _PersisterWorker::PersisterRequestResultOrError _PersisterWorker::processRequest DeserializedSimulation deserializedSimulation; deserializedSimulation.statistics = _simulationFacade->getStatisticsHistory().getCopiedData(); auto currentRawStatistics = _simulationFacade->getRawStatistics(); - printf( - "current: %f, peak: %f\n", - sumColorVector(currentRawStatistics.timeline.timestep.genomeComplexityVariance), - sumColorVector(peakStatistics.timeline.timestep.genomeComplexityVariance)); if (sumColorVector(currentRawStatistics.timeline.timestep.genomeComplexityVariance) >= sumColorVector(peakStatistics.timeline.timestep.genomeComplexityVariance)) {