sort by PROCESSOR and SESSION

This commit is contained in:
Hisham Muhammad 2009-03-11 13:52:39 +00:00
parent 31b3a2d2db
commit 843aded57c

View File

@ -538,6 +538,10 @@ int Process_compare(const void* v1, const void* v2) {
return strcmp(p1->user, p2->user);
case PRIORITY:
return (p1->priority - p2->priority);
case PROCESSOR:
return (p1->processor - p2->processor);
case SESSION:
return (p1->session - p2->session);
case STATE:
return (p1->state - p2->state);
case NICE: