diff options
| author | liuxueli <[email protected]> | 2023-05-30 11:06:13 +0800 |
|---|---|---|
| committer | liuxueli <[email protected]> | 2023-05-30 11:06:13 +0800 |
| commit | 19cd568817a4b6327ba4f07970bd570197904b65 (patch) | |
| tree | 3af689fc9ab11418bc3601cd98a91a3606da3417 /src/tsg_statistic.cpp | |
| parent | 95679fc255f715e17529d8a5763b32427532996c (diff) | |
TSG-15289: 删除拦截策略的metrics统计,由TFE统计
Diffstat (limited to 'src/tsg_statistic.cpp')
| -rw-r--r-- | src/tsg_statistic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tsg_statistic.cpp b/src/tsg_statistic.cpp index f609527..c9147ad 100644 --- a/src/tsg_statistic.cpp +++ b/src/tsg_statistic.cpp @@ -48,7 +48,7 @@ int tsg_set_statistic_opt(int value, enum _STATISTIC_OPT_TYPE type, int thread_s int tsg_set_intercept_flow(struct maat_rule *p_result, struct _traffic_info *traffic_info, int thread_seq) { - if (p_result == NULL || traffic_info == NULL || thread_seq < 0 || thread_seq >= get_thread_count() || p_result->action != TSG_ACTION_INTERCEPT) + if (p_result == NULL || traffic_info == NULL || thread_seq < 0 || thread_seq >= get_thread_count() || p_result->service_id != TSG_SERVICE_INTERCEPT) { return -1; } |
