Skip to content

fix(ops): use adaptive byte units for memory usage display#3987

Open
feitianbubu wants to merge 1 commit into
Wei-Shaw:mainfrom
feitianbubu:fix/ops-memory-unit-format
Open

fix(ops): use adaptive byte units for memory usage display#3987
feitianbubu wants to merge 1 commit into
Wei-Shaw:mainfrom
feitianbubu:fix/ops-memory-unit-format

Conversation

@feitianbubu

@feitianbubu feitianbubu commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

运维仪表盘的内存卡片一直用 formatNumber 格式化 MB 数值,中文环境下超过一万会缩写成"万",32G 内存的机器就显示成 6,514 / 3.2万 MB,中文数量级混着英文存储单位,看着很别扭。

改用项目里已有的 formatBytes 自动换算单位,现在显示 6.4 GB / 32 GB,小内存机器仍然会显示 MB。

优化前:
image

优化后:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant