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

free: implement --wide #19

Open
sylvestre opened this issue Mar 2, 2024 · 4 comments
Open

free: implement --wide #19

sylvestre opened this issue Mar 2, 2024 · 4 comments
Labels
free good first issue Good for newcomers

Comments

@sylvestre
Copy link
Sponsor Contributor


       -w, --wide
              Switch to the wide mode. The wide mode produces lines longer than 80 characters. In
              this mode buffers and cache are reported in two separate columns.
@sylvestre sylvestre added good first issue Good for newcomers free labels Mar 2, 2024
@claudex
Copy link
Contributor

claudex commented Mar 8, 2024

This seems already implemented https://github.com/uutils/procps/blob/main/src/uu/free/src/free.rs#L84

@sylvestre
Copy link
Sponsor Contributor Author

is it correctly implement? i am not sure :)

@claudex
Copy link
Contributor

claudex commented Mar 8, 2024

I don't see the difference, maybe I'm missing something:

$ /bin/free -w
               total        used        free      shared     buffers       cache   available
Mem:        64992236    17611088     1450392     1235384      444840    47442396    47381148
Swap:        1048572        4864     1043708
$ target/release/free -w
               total        used        free      shared     buffers       cache   available
Mem:        64992236    63561500     1430736     1235380      444880    47457624    47376752
Swap:        1048572        4864     1043708

@Krysztal112233
Copy link
Collaborator

I think this feature should be implemented correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
free good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

3 participants