summaryrefslogtreecommitdiff
path: root/shaping/src/shaper_stat.cpp
diff options
context:
space:
mode:
authorliuchang <[email protected]>2023-08-16 06:36:59 +0000
committerliuchang <[email protected]>2023-08-16 06:36:59 +0000
commitfedca72b7d96e7c782ddeb63a97edee37c467a09 (patch)
tree3fee65aef2b4af4a9ce656aa221f1a95a5bf4cad /shaping/src/shaper_stat.cpp
parent099951d0bd691f35c675df6dbff3031a1a522ee6 (diff)
fixbug TSG-16600, change max_latency type from guage to counter for fieldstat3
Diffstat (limited to 'shaping/src/shaper_stat.cpp')
-rw-r--r--shaping/src/shaper_stat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaping/src/shaper_stat.cpp b/shaping/src/shaper_stat.cpp
index e7d03a1..004e69e 100644
--- a/shaping/src/shaper_stat.cpp
+++ b/shaping/src/shaper_stat.cpp
@@ -64,7 +64,7 @@ struct shaping_stat* shaper_stat_init(int thread_num)
struct shaper_stat_conf conf;
const char *column_name[] = {"in_max_latency_us", "in_queue_len", "out_max_latency_us", "out_queue_len", //first line is gauge, second line is counter
"in_pkts", "in_bytes", "in_drop_pkts", "out_pkts", "out_bytes", "out_drop_pkts"};
- enum field_type column_type[] = {FIELD_TYPE_GAUGE, FIELD_TYPE_GAUGE, FIELD_TYPE_GAUGE, FIELD_TYPE_GAUGE,
+ enum field_type column_type[] = {FIELD_TYPE_COUNTER, FIELD_TYPE_GAUGE, FIELD_TYPE_COUNTER, FIELD_TYPE_GAUGE,
FIELD_TYPE_COUNTER, FIELD_TYPE_COUNTER, FIELD_TYPE_COUNTER, FIELD_TYPE_COUNTER, FIELD_TYPE_COUNTER, FIELD_TYPE_COUNTER};
column_num = sizeof(column_name)/sizeof(column_name[0]);