mirror of
https://github.com/Xeeynamo/sotn-decomp.git
synced 2025-02-18 12:08:16 +00:00
Add more details when reporting progress on Discord
This commit is contained in:
parent
84205a7368
commit
f3f7097c4f
@ -174,16 +174,17 @@ def report_human_readable_dryrun(progresses: dict[str, DecompProgressStats]):
|
||||
stat = progresses[overlay]
|
||||
if stat.code_matching != stat.code_matching_prev:
|
||||
coverage = stat.code_matching / stat.code_total
|
||||
coverage_diff = coverage - \
|
||||
(stat.code_matching_prev / stat.code_total)
|
||||
coverage_diff = (stat.code_matching -
|
||||
stat.code_matching_prev) / stat.code_total
|
||||
funcs = stat.functions_matching / stat.functions_total
|
||||
funcs_diff = funcs - (stat.functions_prev / stat.functions_total)
|
||||
funcs_diff = (stat.functions_matching -
|
||||
stat.functions_prev) / stat.functions_total
|
||||
print(str.join(" ", [
|
||||
f"{overlay.upper()}:",
|
||||
f"coverage {coverage*100:.2f}%",
|
||||
f"({coverage_diff:+.2f}%)",
|
||||
f"({coverage_diff:+.3f}%)",
|
||||
f"funcs {funcs*100:.2f}%",
|
||||
f"({funcs_diff:+.2f}%)",
|
||||
f"({funcs_diff:+.3f}%)",
|
||||
]))
|
||||
else:
|
||||
print(f"{overlay.upper()} no new progress")
|
||||
|
Loading…
x
Reference in New Issue
Block a user