8000 df: incorrect size column header · Issue #3193 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

df: incorrect size column header #3193

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

Closed
jfinkels opened this issue Feb 26, 2022 · 0 comments · Fixed by #3456
Closed

df: incorrect size column header #3193

jfinkels opened this issue Feb 26, 2022 · 0 comments · Fixed by #3456
Labels

Comments

@jfinkels
Copy link
Collaborator

For block sizes that are not divisible by 1024, the column header of the "size" column in the table produced by df does not match GNU. (For block sizes divisible by 1024, see pull request #3191.) For example,

GNU df:

$ df --block-size=1234 | head -n1
Filesystem                1.3kB-blocks     Used Available Use% Mounted on

uutils df:

$ ./target/debug/df --block-size=1234 | head -n1
Filesystem          1k-blocks         Used    Available  Use% Mounted on       

(For this issue, let's ignore the differences in whitespace.) GNU df produces "1.3kB-blocks", uutils df produces "1k-blocks".

The output format seems similar to that of numfmt:

$ numfmt --to=si 1234
1.3K
cakebaker added a commit to cakebaker/coreutils that referenced this issue Apr 30, 2022
cakebaker added a commit to cakebaker/coreutils that referenced this issue Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0