Skip to content

Commit

Permalink
debug code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Nov 5, 2024
1 parent 3f5e983 commit 76a2d3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion source/Gui/AutosaveWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace
{
auto constexpr RightColumnWidth = 200.0f;
auto constexpr AutosaveSenderId = "Autosave";
auto constexpr PeakDetectionInterval = 30; //in seconds
}

AutosaveWindow::AutosaveWindow()
Expand Down Expand Up @@ -365,7 +366,7 @@ void AutosaveWindow::processAutomaticSavepoints()

if (_catchPeaks != CatchPeaks_None) {
auto minSinceLastCatchPeak = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() - _lastPeakTimepoint).count();
if (minSinceLastCatchPeak >= 10) {
if (minSinceLastCatchPeak >= PeakDetectionInterval) {
_peakProcessor->executeTask(
[&](auto const& senderId) {
return _persisterFacade->scheduleGetPeakSimulation(
Expand Down
4 changes: 0 additions & 4 deletions source/PersisterImpl/PersisterWorker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {

Expand Down

0 comments on commit 76a2d3b

Please sign in to comment.