mirror of https://github.com/xzeldon/htop.git
sort by PROCESSOR and SESSION
This commit is contained in:
parent
31b3a2d2db
commit
843aded57c
|
@ -538,6 +538,10 @@ int Process_compare(const void* v1, const void* v2) {
|
||||||
return strcmp(p1->user, p2->user);
|
return strcmp(p1->user, p2->user);
|
||||||
case PRIORITY:
|
case PRIORITY:
|
||||||
return (p1->priority - p2->priority);
|
return (p1->priority - p2->priority);
|
||||||
|
case PROCESSOR:
|
||||||
|
return (p1->processor - p2->processor);
|
||||||
|
case SESSION:
|
||||||
|
return (p1->session - p2->session);
|
||||||
case STATE:
|
case STATE:
|
||||||
return (p1->state - p2->state);
|
return (p1->state - p2->state);
|
||||||
case NICE:
|
case NICE:
|
||||||
|
|
Loading…
Reference in New Issue