summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-06-09 18:44:50 +0800
committerliuxueli <[email protected]>2023-06-09 18:44:50 +0800
commit692fa4b3a3bd2f5953b80e536cd694076118c5b2 (patch)
tree96c8d897dc4a6950dab552b2cf5862f023057a72
parent7e7b1165eda3ff3c26b677fef3359eaf7b88b9af (diff)
TSG-15446: Close状态未更新application metrics
-rw-r--r--src/tsg_entry.cpp3
-rw-r--r--src/tsg_rule.cpp2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 26d6d87..56d4f8a 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -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;
}
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index 73f0114..c7b352b 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -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};