summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-03-19 10:48:50 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2019-04-09 14:59:46 +0900
commit302793aeffd60226c521a5c3965692014aaddb85 (patch)
tree0291aeeb818d1131b4585451cd1c3fd9025ee9b2 /scripts
parent2ba51577aef4f4a808e292f2bfa9fd8e36e5c64f (diff)
html: add task base done percent at bsp.html
"BSP commit / upstreamed commit" is not 1:1. This means, max will be not 100%. This patch adds task base percent. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/html.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/html.py b/scripts/html.py
index 26f6804..0eeaf16 100755
--- a/scripts/html.py
+++ b/scripts/html.py
@@ -560,6 +560,8 @@ class periject_html(base.base):
a = html("a", {"target":"subbody"})
cnt_bsp = 0
cnt_up = 0
+ cnt_all = 0
+ cnt_done= 0
with html("body"):
html("h1").print("BSP patch list")
@@ -577,6 +579,7 @@ class periject_html(base.base):
if (not len(bsp)):
continue
+ cnt_all += 1
with html("tr"):
a.option({"href":
os.path.relpath(file.replace("yaml", "html").replace("projects", "html"), "{}/html".format(self.top()))})
@@ -586,9 +589,13 @@ class periject_html(base.base):
cnt_bsp += self.task_commit_bsp(bsp)
with html("td"):
- cnt_up += self.task_commit_upstream(v)
+ up = self.task_commit_upstream(v)
+ if (up):
+ cnt_up += up
+ cnt_done += 1
- html("p").print("bsp:{}/upstream:{} = {:.1f}% done".format(cnt_bsp, cnt_up, cnt_up * 100 /cnt_bsp))
+ html("p").print("bsp:{}/upstream:{} = {:.1f}%".format(cnt_bsp, cnt_up, cnt_up * 100 /cnt_bsp))
+ html("p").print("task:{}/done:{} = {:.1f}%".format(cnt_all, cnt_done, cnt_done * 100 /cnt_all))
#--------------------
# print