tests, configs, util, mem, python, systemc: Change base 10 units to base 2 (#1605)

This commit changes metric units (e.g. kB, MB, and GB) to binary units
(KiB, MiB, GiB) in various files. This PR covers files that were missed
by a previous PR that also made these changes.
This commit is contained in:
Erin (Jianghua) Le
2024-10-01 11:18:05 -07:00
committed by GitHub
parent d57208c615
commit c10feed524
45 changed files with 135 additions and 129 deletions

View File

@@ -136,9 +136,9 @@ def main():
xticks_labels = []
for x in xticks_locations:
if x < 1024:
xticks_labels.append("%d kB" % x)
xticks_labels.append("%d KiB" % x)
else:
xticks_labels.append("%d MB" % (x / 1024))
xticks_labels.append("%d MiB" % (x / 1024))
plt.xticks(xticks_locations, xticks_labels, rotation=-45)
plt.minorticks_off()