code_size_compare: round percentage to an integer value

Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
Yanray Wang 2023-07-25 10:24:20 +08:00
parent f2cd717952
commit 25bd331899

View file

@ -644,8 +644,8 @@ class CodeSizeGeneratorWithSize(CodeSizeGenerator):
str(text_vari[0]) + "," + str(data_vari[0]),
str(text_vari[1]) + "," + str(data_vari[1]),
str(text_vari[2]) + "," + str(data_vari[2]),
"{:.2%}".format(text_vari[3]) + ","
+ "{:.2%}".format(data_vari[3])))
"{:.0%}".format(text_vari[3]) + ","
+ "{:.0%}".format(data_vari[3])))
else:
output.write(
format_string