summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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