diff options
| author | 刘畅 <[email protected]> | 2024-07-31 09:41:21 +0000 |
|---|---|---|
| committer | 刘畅 <[email protected]> | 2024-07-31 09:41:21 +0000 |
| commit | 5b19aac02fb7b453cc0e6ae30eef1465352d92aa (patch) | |
| tree | 1faf56cf86595d081341f734326ad5256283591b /shaping/src/shaper_global_stat.cpp | |
| parent | 2c2e3ac4c8ea3d04ca942330d7501bb28c48f5b9 (diff) | |
| parent | 4030c6fb6887356e38b20cb3d74358463dd29e37 (diff) | |
Merge branch 'add_test_with_real_swarmkv' into 'rel'v3.1.39
Add test with real swarmkv
See merge request tango/shaping-engine!101
Diffstat (limited to 'shaping/src/shaper_global_stat.cpp')
| -rw-r--r-- | shaping/src/shaper_global_stat.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shaping/src/shaper_global_stat.cpp b/shaping/src/shaper_global_stat.cpp index c039fda..1fb3764 100644 --- a/shaping/src/shaper_global_stat.cpp +++ b/shaping/src/shaper_global_stat.cpp @@ -2,7 +2,6 @@ #include <stdlib.h> #include <MESA/MESA_prof_load.h> -#include <fieldstat/fieldstat_easy.h> #include "log.h" #include "utils.h" @@ -76,7 +75,7 @@ struct shaping_global_stat* shaper_global_stat_init(int work_thread_num) { struct shaping_global_stat *stat = NULL; struct shping_global_stat_conf conf; - struct fieldstat_tag tag; + struct field tag; stat = (struct shaping_global_stat*)calloc(1, sizeof(struct shaping_global_stat)); @@ -86,7 +85,7 @@ struct shaping_global_stat* shaper_global_stat_init(int work_thread_num) } tag.key = "shaping_global"; - tag.type = TAG_CSTRING; + tag.type = FIELD_VALUE_CSTRING; tag.value_str = "shaping_global"; stat->instance = fieldstat_easy_new(work_thread_num, "shaping_global", &tag, 1); if (stat->instance == NULL) { |
