diff options
| author | liuchang <[email protected]> | 2023-05-26 03:13:00 +0000 |
|---|---|---|
| committer | liuchang <[email protected]> | 2023-05-26 03:13:00 +0000 |
| commit | 7a71c6352a1314a866728385396e715f98293aca (patch) | |
| tree | c2c0342a3c9c8f416aaa11388dbb0f12d848161e /shaping/src/shaper_stat.cpp | |
| parent | 21cea5a6d0ac97c86cb62ce29964d66ba187de47 (diff) | |
add test case for priority update
Diffstat (limited to 'shaping/src/shaper_stat.cpp')
| -rw-r--r-- | shaping/src/shaper_stat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaping/src/shaper_stat.cpp b/shaping/src/shaper_stat.cpp index 0d32692..74da337 100644 --- a/shaping/src/shaper_stat.cpp +++ b/shaping/src/shaper_stat.cpp @@ -210,7 +210,7 @@ void shaper_stat_refresh(struct shaping_stat *stat, struct shaping_flow *sf, int return; } - int need_update_guage = sf->forwarded_pkts > CONFIRM_PRIORITY_PKTS ? 1 : 0; + int need_update_guage = sf->processed_pkts > CONFIRM_PRIORITY_PKTS ? 1 : 0; for (int i = 0; i < sf->rule_num; i++) { rule = &sf->matched_rule_infos[i]; |
