diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-04-25 13:58:25 +0900 |
---|---|---|
committer | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2019-04-25 13:58:25 +0900 |
commit | fb3832fcf446c5e1e52322e254a1d01f77967c77 (patch) | |
tree | 1f16713cc847d0fdea911661f551b2416ebbdb18 /scripts | |
parent | 302793aeffd60226c521a5c3965692014aaddb85 (diff) |
script/html: count correct BSP patch number for statistics
Current statistics is counting line number, but then,
result will be strange if 1 line had multi patches.
This patch counts correct BSP patch number.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/html.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/html.py b/scripts/html.py index 0eeaf16..537ee52 100755 --- a/scripts/html.py +++ b/scripts/html.py @@ -562,6 +562,7 @@ class periject_html(base.base): cnt_up = 0 cnt_all = 0 cnt_done= 0 + tmp = 0 with html("body"): html("h1").print("BSP patch list") @@ -586,12 +587,13 @@ class periject_html(base.base): html("td").print(a.text(os.path.basename(file).replace(".yaml", ""))) with html("td"): - cnt_bsp += self.task_commit_bsp(bsp) + tmp = self.task_commit_bsp(bsp) + cnt_bsp += tmp with html("td"): up = self.task_commit_upstream(v) if (up): - cnt_up += up + cnt_up += tmp cnt_done += 1 html("p").print("bsp:{}/upstream:{} = {:.1f}%".format(cnt_bsp, cnt_up, cnt_up * 100 /cnt_bsp)) |