Remove remaining comments (exp_times, STA.h, gb_item_memory)
This commit is contained in:
parent
48c9fe7f22
commit
62a97cdf9d
@ -32,7 +32,6 @@ int ExpTimes::init() {
|
|||||||
ret += -1;
|
ret += -1;
|
||||||
} /*查db2 ---延迟查询*/
|
} /*查db2 ---延迟查询*/
|
||||||
ret += this->reload_params(); /*1.上限;2.初始值*/
|
ret += this->reload_params(); /*1.上限;2.初始值*/
|
||||||
// this->get_history_times();
|
|
||||||
logger_->Debug() << "ExpTimes::init(),"
|
logger_->Debug() << "ExpTimes::init(),"
|
||||||
<< "shear_times:" << rule_stat_.shear_times
|
<< "shear_times:" << rule_stat_.shear_times
|
||||||
<< ",running_time:" << rule_stat_.running_time << endl;
|
<< ",running_time:" << rule_stat_.running_time << endl;
|
||||||
@ -177,8 +176,7 @@ int ExpTimes::update_times() {
|
|||||||
if (!this->act_triggered_) {
|
if (!this->act_triggered_) {
|
||||||
this->act_started_ = false;
|
this->act_started_ = false;
|
||||||
this->rule_stat_.running_time +=
|
this->rule_stat_.running_time +=
|
||||||
mm_vars["time"] / (60.0 * 60000); ///<小时
|
mm_vars["time"] / (60.0 * 60000); this->logger_->Debug()
|
||||||
this->logger_->Debug()
|
|
||||||
<< "计时结束:" << mix_cc::mix_time_t(now_time_).to_formatted_time()
|
<< "计时结束:" << mix_cc::mix_time_t(now_time_).to_formatted_time()
|
||||||
<< " 本次统计的使用时间:" << mm_vars["time"] / 60000.0
|
<< " 本次统计的使用时间:" << mm_vars["time"] / 60000.0
|
||||||
<< " minites" << std::endl;
|
<< " minites" << std::endl;
|
||||||
@ -187,8 +185,7 @@ int ExpTimes::update_times() {
|
|||||||
mm_vars["stime"] =
|
mm_vars["stime"] =
|
||||||
duration_cast<milliseconds>(now_time_.time_since_epoch()).count();
|
duration_cast<milliseconds>(now_time_.time_since_epoch()).count();
|
||||||
this->rule_stat_.running_time +=
|
this->rule_stat_.running_time +=
|
||||||
mm_vars["time"] / (60.0 * 60000); ///<小时
|
mm_vars["time"] / (60.0 * 60000); this->logger_->Debug()
|
||||||
this->logger_->Debug()
|
|
||||||
<< "计时结束:"
|
<< "计时结束:"
|
||||||
<< mix_cc::mix_time_t(now_time_).to_formatted_time()
|
<< mix_cc::mix_time_t(now_time_).to_formatted_time()
|
||||||
<< " 本次统计的使用时间:" << mm_vars["time"] / 60000.0
|
<< " 本次统计的使用时间:" << mm_vars["time"] / 60000.0
|
||||||
|
|||||||
@ -226,4 +226,4 @@ private:
|
|||||||
int get_seq();
|
int get_seq();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace DAA
|
}
|
||||||
@ -44,7 +44,6 @@ double Dist::get_shifted_prob() const { return prob_; }
|
|||||||
*/
|
*/
|
||||||
int Dist::auto_test(dlib::running_stats<double> rs,
|
int Dist::auto_test(dlib::running_stats<double> rs,
|
||||||
const std::vector<double>& tmp_data) {
|
const std::vector<double>& tmp_data) {
|
||||||
// int ret = 0;
|
|
||||||
try {
|
try {
|
||||||
this->rs_ = rs;
|
this->rs_ = rs;
|
||||||
std::tuple<double, std::string, int, std::vector<int>> test;
|
std::tuple<double, std::string, int, std::vector<int>> test;
|
||||||
|
|||||||
@ -22,6 +22,7 @@ struct DoubleBufferArrays {
|
|||||||
read_array.resize(size);
|
read_array.resize(size);
|
||||||
write_array.resize(size);
|
write_array.resize(size);
|
||||||
}
|
}
|
||||||
|
void swap_buffers() { std::swap(read_array, write_array); }
|
||||||
|
|
||||||
std::vector<double>& get_write_array() { return write_array; }
|
std::vector<double>& get_write_array() { return write_array; }
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user