Overhaul sorting of state process column

Do not sort by ascii value of the state identifier, sort by relevance
This commit is contained in:
Christian Göttsche
2021-01-27 15:11:44 +01:00
committed by BenBE
parent a3c8285237
commit d5de1bc23d
2 changed files with 39 additions and 4 deletions

View File

@ -241,9 +241,6 @@ static inline bool Process_isChildOf(const Process* this, pid_t pid) {
return pid == Process_getParentPid(this);
}
#define Process_sortState(state) ((state) == 'I' ? 0x100 : (state))
#define ONE_K 1024UL
#define ONE_M (ONE_K * ONE_K)
#define ONE_G (ONE_M * ONE_K)