mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-05-24 08:51:14 -04:00
limit precision for fragmentation in table
This commit is contained in:
parent
12525f2861
commit
37474e117c
2 changed files with 46 additions and 46 deletions
|
@ -49,7 +49,7 @@ for size, slots, fragmentation in zip(size_classes, size_class_slots, fragmentat
|
|||
used = size * slots
|
||||
real = page_align(used)
|
||||
print("| ", end='')
|
||||
print(size, str(fragmentation) + "%", slots, real, str(100 - used / real * 100) + "%", sep=" | ", end=" |\n")
|
||||
print(size, f"{fragmentation:.4}%", slots, real, str(100 - used / real * 100) + "%", sep=" | ", end=" |\n")
|
||||
|
||||
if len(argv) < 2:
|
||||
exit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue