summaryrefslogtreecommitdiff
path: root/src/tsg_rule.cpp
diff options
context:
space:
mode:
author刘学利 <[email protected]>2023-06-02 08:19:50 +0000
committer刘学利 <[email protected]>2023-06-02 08:19:50 +0000
commit380733e78be9e5adb5fc0973689038a7ebcc70ce (patch)
tree952e8fbd4f5a33084a2d21ab691f8a0a8cbc3289 /src/tsg_rule.cpp
parent2adf35914f209b2a35d0c9c0c50c4d9733a706ba (diff)
TSG-14945: 输出Application and Protocol Metrics
Diffstat (limited to 'src/tsg_rule.cpp')
-rw-r--r--src/tsg_rule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index 7de6a99..3b1164b 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -126,8 +126,7 @@ unsigned short get_redis_port(char *redis_port_range)
}
else
{
- int ret=sscanf(buf, "%hu-%hu", &s_port, &e_port);
- assert(ret==2);
+ sscanf(buf, "%hu-%hu", &s_port, &e_port);
}
for(int i=s_port; i<=e_port && port_num<32; i++)