mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
Fix progress.py
This commit is contained in:
parent
87530c10e5
commit
f324d44c84
@ -71,9 +71,6 @@ def main(args):
|
|||||||
funcs_matching_ratio = (len(matching_funcs) / len(all_funcs)) * 100
|
funcs_matching_ratio = (len(matching_funcs) / len(all_funcs)) * 100
|
||||||
matching_ratio = (matching_size / total_size) * 100
|
matching_ratio = (matching_size / total_size) * 100
|
||||||
|
|
||||||
if matching_size + nonmatching_size != total_size:
|
|
||||||
print("Warning: category/total size mismatch!\n")
|
|
||||||
|
|
||||||
if args.csv:
|
if args.csv:
|
||||||
version = 1
|
version = 1
|
||||||
git_object = git.Repo().head.object
|
git_object = git.Repo().head.object
|
||||||
@ -83,6 +80,8 @@ def main(args):
|
|||||||
str(len(matching_funcs)), str(total_size), str(nonmatching_size), str(matching_size)]
|
str(len(matching_funcs)), str(total_size), str(nonmatching_size), str(matching_size)]
|
||||||
print(",".join(csv_list))
|
print(",".join(csv_list))
|
||||||
else:
|
else:
|
||||||
|
if matching_size + nonmatching_size != total_size:
|
||||||
|
print("Warning: category/total size mismatch!\n")
|
||||||
print(f"{len(matching_funcs)} matched functions / {len(all_funcs)} total ({funcs_matching_ratio:.2f}%)")
|
print(f"{len(matching_funcs)} matched functions / {len(all_funcs)} total ({funcs_matching_ratio:.2f}%)")
|
||||||
print(f"{matching_size} matching bytes / {total_size} total ({matching_ratio:.2f}%)")
|
print(f"{matching_size} matching bytes / {total_size} total ({matching_ratio:.2f}%)")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user