nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.56k stars 1.52k forks source link

keybind(s) for modifying nice level #2081

Closed xfnw closed 2 years ago

xfnw commented 2 years ago

Is your feature request related to a problem? Please describe. there seems to be no way to renice a process in glances

Describe the solution you'd like adding keybind(s) for changing the nice level of a process. not sure what a good key to use for this would be, since both n and N are taken.

Describe alternatives you've considered using htop's F7 and F8 keybinds for decrementing and incrementing nice level

Additional context the niceness of a process controls how "nice" it is to other processes, a higher value means it will let other processes use more of the cpu, essentially the inverse of priority. renice(1) changes the niceness of a running process.

nicolargo commented 2 years ago

Hi @xfnw !

Done and pushed on the develop branch.

+ to Increase selected process nice level / Lower the priority (need right) - Only in standalone mode. - to Decrease selected process nice level / Higher the priority (need right) - Only in standalone mode.

Please test/comment.

xfnw commented 2 years ago

seems like it works perfectly. thanks!