mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-26 01:05:52 +03:00
[GH-ISSUE #1213] MacOS内存和存储显示计算问题不准确 #661
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#661
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zouchengli on GitHub (Jul 5, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1213
@0xJacky commented on GitHub (Jul 5, 2025):
在
8f8cb6d05中,我修复了 macOS 下硬盘统计数据出错的问题,以我 1T 配置为例,输出的是 995GB (926GiB),符合df -h的输出结果关于内存用量,以我的 32G 内存的 Mac 为例:
macOS 返回的物理内存总量,单位为字节 (bytes)
• 按 10 进制(1 GB = 10^9 B)换算约为 34.36 GB,四舍五入写成 “34 GB” 基本无误
• 按 2 进制(1 GiB = 2^30 B)换算恰为 32 GiB
References