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

Option -t makes any sorting useless and the tree static #1389

Open
notorand-it opened this issue Jan 25, 2024 · 1 comment
Open

Option -t makes any sorting useless and the tree static #1389

notorand-it opened this issue Jan 25, 2024 · 1 comment
Labels
bug 🐛 Something isn't working duplicate 🚯 This issue or pull request already exists support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.
Milestone

Comments

@notorand-it
Copy link

When you use -t/--tree option, any sorting defined with the -s/--sort-key stops making any sense.

The process tree starts from the init process (systemd nowadays) with PID:1 and goes down acconrding the system boot order.
In my 317x88 virtual terminal this tree is static and sorted by the tree structure itself. So, whatever you have setup in -s/--sort-key option, the process tree structure won't sort at all.

I would make this clear in the documentation and maybe, spit a warning out when both -t/--tree and -s/--sort-key are used at the same time.

@BenBE
Copy link
Member

BenBE commented Jan 25, 2024

The sorting in tree mode works based on the direct children for each parent.

Unfortunately, in the 3.3.0 release there has been a bug (cf. #1378), which got resolved in #1380.

@BenBE BenBE added bug 🐛 Something isn't working duplicate 🚯 This issue or pull request already exists support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead. labels Jan 25, 2024
@BenBE BenBE added this to the 3.4.0 milestone Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working duplicate 🚯 This issue or pull request already exists support request This is not a code issue but merely a support request. Please use the mailing list or IRC instead.
Projects
None yet
Development

No branches or pull requests

2 participants