Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit 1b8e919

Browse files
committed
fix: use 1024 units for bytes (follow-up to #149)
1 parent c637d80 commit 1b8e919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ai/backend/client/cli/admin/agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def format_stats(raw_stats):
2020

2121
value_formatters = {
2222
'bytes': lambda m: "{} / {}".format(
23-
humanize.filesize.naturalsize(int(m['current'])),
24-
humanize.filesize.naturalsize(int(m['capacity'])),
23+
humanize.naturalsize(int(m['current']), binary=True),
24+
humanize.naturalsize(int(m['capacity']), binary=True),
2525
),
2626
'Celsius': lambda m: "{:,} C".format(
2727
float(m['current']),

0 commit comments

Comments
 (0)