From: yu.dongliang <18588496441@163.com> Date: Thu, 14 Sep 2023 17:20:54 +0000 (+0800) Subject: ses_paths_find_flow() X-Git-Url: http://baseworks.info/?a=commitdiff_plain;h=02cbe51993238696ae06e2f653a9c0fc8d91929c;p=ses.git ses_paths_find_flow() --- 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; }