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

Adapt process nice color according to definition #3050

Closed
nicolargo opened this issue Dec 23, 2024 · 2 comments
Closed

Adapt process nice color according to definition #3050

nicolargo opened this issue Dec 23, 2024 · 2 comments

Comments

@nicolargo
Copy link
Owner

nicolargo commented Dec 23, 2024

For the moment (Glances < 4.3), Glances display process nice level with the following color:

  • not WARNING ==> COLOR_DEFAULT
  • WARNING => COLOR_MAGENTA

WARNING can be defined in the Glances conf file (default WARNING: all but 0):

nice_warning=-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19

We want 3 level according to nice definition:

NI -- Nice Value The nice value of the task. A negative nice value means higher priority, whereas a positive nice value means lower priority.Zero in this field simply means priority will not be adjusted in determining a task's dispatch-ability

So:

  • 0 ==> COLOR_DEFAULT
  • lower than 0 ==> COLOR_BLUE
  • higher than 0 ==> COLOR_MAGENTA
@nicolargo
Copy link
Owner Author

Already done by conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@nicolargo and others