Skip to content

Implement a new API method to limit the number of returned list object #2491

Closed Answered by nicolargo
mkanet asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mkanet

interesting question you have :)

In fact Glances already optimize the processlist plugin by doing the following:

  • get all the processes stats with the sorted key (for example CPU consumption)
  • sort them
  • take the first N processes (N depends of the screen height)
  • get extended stats only for those N processes

If i understand, you want to make the N "number" configurable ?

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@mkanet
Comment options

Answer selected by mkanet
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants