diff options
| author | root <[email protected]> | 2023-05-30 09:31:51 +0000 |
|---|---|---|
| committer | root <[email protected]> | 2023-05-30 09:31:51 +0000 |
| commit | fd75395ba232c71ca0f5b43cbe38214c7975f643 (patch) | |
| tree | bbe06e2a56b116bdf72ba9d1ff5ebec032bd5c85 /shaping/src/shaper_stat.cpp | |
| parent | 57efeb63d5769c9f1b92b1266780968ad1c30d78 (diff) | |
add feature splitby and fairness
Diffstat (limited to 'shaping/src/shaper_stat.cpp')
| -rw-r--r-- | shaping/src/shaper_stat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shaping/src/shaper_stat.cpp b/shaping/src/shaper_stat.cpp index 74da337..0685e01 100644 --- a/shaping/src/shaper_stat.cpp +++ b/shaping/src/shaper_stat.cpp @@ -137,7 +137,7 @@ static void shaper_stat_tags_build(int vsys_id, int rule_id, int profile_id, int tags[TAG_PRIORITY_IDX].value_int = priority; - if (profile_type == SHAPING_PROFILE_TYPE_PRIMARY) { + if (profile_type == PROFILE_IN_RULE_TYPE_PRIMARY) { tags[TAG_PROFILE_TYPE_IDX].value_str = "primary"; } else { tags[TAG_PROFILE_TYPE_IDX].value_str = "borrow"; @@ -214,10 +214,10 @@ void shaper_stat_refresh(struct shaping_stat *stat, struct shaping_flow *sf, int for (int i = 0; i < sf->rule_num; i++) { rule = &sf->matched_rule_infos[i]; - shaper_stat_profile_metirc_refresh(stat, rule->vsys_id, thread_id, rule->id, &rule->primary, SHAPING_PROFILE_TYPE_PRIMARY, need_update_guage); + shaper_stat_profile_metirc_refresh(stat, rule->vsys_id, thread_id, rule->id, &rule->primary, PROFILE_IN_RULE_TYPE_PRIMARY, need_update_guage); for (int j = 0; j < rule->borrowing_num; j++) { - shaper_stat_profile_metirc_refresh(stat, rule->vsys_id, thread_id, rule->id, &rule->borrowing[j], SHAPING_PROFILE_TYPE_BORROW, need_update_guage); + shaper_stat_profile_metirc_refresh(stat, rule->vsys_id, thread_id, rule->id, &rule->borrowing[j], PROFILE_IN_RULE_TYPE_BORROW, need_update_guage); } } |
