From fedca72b7d96e7c782ddeb63a97edee37c467a09 Mon Sep 17 00:00:00 2001 From: liuchang Date: Wed, 16 Aug 2023 06:36:59 +0000 Subject: fixbug TSG-16600, change max_latency type from guage to counter for fieldstat3 --- shaping/src/shaper_stat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaping/src/shaper_stat.cpp') 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]); -- cgit v1.2.3