diff --git a/src/zm_analysis_thread.cpp b/src/zm_analysis_thread.cpp index 7d803c16b..325d8de59 100644 --- a/src/zm_analysis_thread.cpp +++ b/src/zm_analysis_thread.cpp @@ -23,14 +23,6 @@ void AnalysisThread::Start() { void AnalysisThread::Run() { while (!(terminate_ or zm_terminate)) { - // Some periodic updates are required for variable capturing framerate - Debug(2, "Analyzing"); - if (!monitor_->Analyse()) { - if (!(terminate_ or zm_terminate)) { - Microseconds sleep_for = monitor_->Active() ? Microseconds(ZM_SAMPLE_RATE) : Microseconds(ZM_SUSPENDED_RATE); - Debug(2, "Sleeping for %" PRId64 "us", int64(sleep_for.count())); - std::this_thread::sleep_for(sleep_for); - } - } + monitor_->Analyse(); } }