TSG-15446: Close状态未更新application metrics

This commit is contained in:
liuxueli
2023-06-09 18:44:50 +08:00
parent 7e7b1165ed
commit 692fa4b3a3
2 changed files with 3 additions and 2 deletions

View File

@@ -1109,7 +1109,8 @@ int session_calculate_packets_increment(const struct streaminfo *a_stream, struc
int session_application_metrics_update(const struct streaminfo *a_stream, struct session_runtime_action_context *srt_action_context, int thread_seq)
{
if(tsg_get_current_time_ms() - srt_action_context->last_update_metric_time < g_tsg_para.app_metric_update_interval_ms)
if(tsg_get_current_time_ms() - srt_action_context->last_update_metric_time < g_tsg_para.app_metric_update_interval_ms &&
a_stream->opstate!=OP_STATE_CLOSE && a_stream->pktstate!=OP_STATE_CLOSE)
{
return 0;
}

View File

@@ -1928,7 +1928,7 @@ struct maat *init_maat_feather(const char* conffile, char* instance_name, char *
get_data_center(effective_flag, effective_tag_key, g_tsg_maat_rt_para.data_center, sizeof(g_tsg_maat_rt_para.data_center));
}
int _log_level=LOG_LEVEL_FATAL;
int _log_level=LOG_LEVEL_INFO;
MESA_load_profile_int_def(conffile, module,"LOG_LEVEL", &(_log_level), LOG_LEVEL_FATAL);
char log_path[128]={0};