From 6a28112cd779cb26f0bee09ede2e8cd176331cf6 Mon Sep 17 00:00:00 2001 From: Huamonarch Date: Sat, 9 May 2026 13:35:17 +0800 Subject: [PATCH] Final comment cleanup batch --- eqpalg/algs/exp_sample2D.cc | 4 ++-- eqpalg/algs/exp_times.cc | 2 +- eqpalg/threads/handler_exec.h | 2 +- eqpalg/threads/manager.cc | 2 -- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/eqpalg/algs/exp_sample2D.cc b/eqpalg/algs/exp_sample2D.cc index 16c10f5..921c148 100644 --- a/eqpalg/algs/exp_sample2D.cc +++ b/eqpalg/algs/exp_sample2D.cc @@ -56,7 +56,7 @@ AlarmInfo ExpSample2D::mon_proc() { "," + DAA::double2strLimit(limit_up_) + "]"; logger_->Debug() << msg << endl; this->query_time_range_.set_left(query_time_range_.get_right() - - delay_time_); // + delay_time_); return utility::build_alarm_info( utility::get_msg_level(limit_down_, limit_up_, this->rule_stat_.current_value), @@ -72,7 +72,7 @@ AlarmInfo ExpSample2D::mon_proc() { DAA::double2strLimit(limit_up_) + "]"; logger_->Debug() << msg << endl; this->query_time_range_.set_left(query_time_range_.get_right() - - milliseconds(min_len_ * 50)); // + milliseconds(min_len_ * 50)); logger_->Debug() << rule_name_ << ",stime:" << mix_cc::mix_time_t(query_time_range_.get_left()) .to_formatted_time() diff --git a/eqpalg/algs/exp_times.cc b/eqpalg/algs/exp_times.cc index abc0af3..7b6cddf 100644 --- a/eqpalg/algs/exp_times.cc +++ b/eqpalg/algs/exp_times.cc @@ -123,7 +123,7 @@ AlarmInfo ExpTimes::mon_proc() { logger_->Debug() << msg << endl; this->query_time_range_.set_left(query_time_range_.get_right() - - delay_time_); // + delay_time_); return utility::build_alarm_info( utility::get_msg_level(0, this->rule_stat_.limit_up, this->rule_stat_.current_value), diff --git a/eqpalg/threads/handler_exec.h b/eqpalg/threads/handler_exec.h index c918cc3..fdaa642 100644 --- a/eqpalg/threads/handler_exec.h +++ b/eqpalg/threads/handler_exec.h @@ -160,7 +160,7 @@ public: int64_t stime, int64_t etime); private: - static int instanceCount; // 声明静态成员变量 + static int instanceCount; private: int alg_id_; bool is_running_; diff --git a/eqpalg/threads/manager.cc b/eqpalg/threads/manager.cc index 1eee91a..262da4e 100644 --- a/eqpalg/threads/manager.cc +++ b/eqpalg/threads/manager.cc @@ -220,10 +220,8 @@ int Manager::enable(std::string ruleId, bool usable) { } // 维护 stored_cfg_data_ 保证停机开机后,usable_保持一致 try { - // 1.查询参数 auto[alg_id, name, rule_json, usable_source, padding_low, padding_up, task_seq] = stored_cfg_data_.find(ruleId)->second; - // 2.调用storage 没有就添加,存在就修改 storage(ruleId, alg_id, name, rule_json, usable, padding_low, padding_up, task_seq); } catch (...) {