From 02cbe51993238696ae06e2f653a9c0fc8d91929c Mon Sep 17 00:00:00 2001 From: "yu.dongliang" <18588496441@163.com> Date: Fri, 15 Sep 2023 01:20:54 +0800 Subject: [PATCH] ses_paths_find_flow() --- ses_step_va_balance.c | 4 +++- ses_steps.c | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ses_step_va_balance.c b/ses_step_va_balance.c index 9e99bd2..208ecd1 100644 --- a/ses_step_va_balance.c +++ b/ses_step_va_balance.c @@ -29,7 +29,7 @@ int ses_paths_find_flow(ses_flow_t* flow, scf_vector_t* paths, ScfEpin* vip, ses if (!path->childs) continue; - int ret = ses_paths_find_flow(flow, path->childs, p, bridge); + int ret = ses_paths_find_flow(flow, path->childs, vip, bridge); if (ret < 0) return ret; @@ -169,6 +169,8 @@ static int _va_balance_handler(ScfEfunction* f, int64_t ns, int64_t count, ses_c ses_flow_print(flow0); printf("\n"); + printf("-------------\n"); + ses_flow_print(flow1); printf("\n"); diff --git a/ses_steps.c b/ses_steps.c index 04c4348..9867497 100644 --- a/ses_steps.c +++ b/ses_steps.c @@ -130,8 +130,9 @@ void ses_flow_print(ses_flow_t* flow) for (j = 0; j < path->pins->size; j++) { p = path->pins->data[j]; - if (!flag && p->lid == vip->lid) { - flag = 1; + if (!flag) { + if (p->lid == vip->lid) + flag = 1; continue; } -- 2.25.1