TSG-15446: Close状态未更新application metrics
This commit is contained in:
@@ -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)
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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));
|
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);
|
MESA_load_profile_int_def(conffile, module,"LOG_LEVEL", &(_log_level), LOG_LEVEL_FATAL);
|
||||||
|
|
||||||
char log_path[128]={0};
|
char log_path[128]={0};
|
||||||
|
|||||||
Reference in New Issue
Block a user