Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duf reports human units incorrectly on macOS #266

Open
notrobpike opened this issue Aug 27, 2023 · 0 comments
Open

duf reports human units incorrectly on macOS #266

notrobpike opened this issue Aug 27, 2023 · 0 comments

Comments

@notrobpike
Copy link

notrobpike commented Aug 27, 2023

When using -h|-H, I recognize that on linux (ubuntu 20 anyway) df reports base-2 units as 'G', T' etc, and reports base-10 units exactly the same. So, the output alone is not enough to tell you what you're looking at, and we generally assume base-2.

But on macOS, -h uses a correct binary prefix Gi, Ti, etc. I think on Linux it's arguable which is the correct choice, but on macOS, duf should be following the lead of the OS supplied df.

I'll note that while the output is "correct" (distinguishable) on macOS, the manual for df(1) is wrong. They mention base-2 but then use the words for base-10 in the description.

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

No branches or pull requests

1 participant