mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-10 03:04:36 +03:00
Invert Process_compare resolution so that superclass matches run first
* This removes duplicated code that adjusts the sort direction from every OS-specific folder. * Most fields in a regular htop screen are OS-independent, so trying Process_compare first and only falling back to the OS-specific compareByKey function if it's an OS-specific field makes sense. * This will allow us to override the sortKey in a global way without having to edit each OS-specific file.
This commit is contained in:
@ -56,7 +56,7 @@ void Process_delete(Object* cast);
|
||||
|
||||
void SolarisProcess_writeField(const Process* this, RichString* str, ProcessField field);
|
||||
|
||||
long SolarisProcess_compare(const void* v1, const void* v2);
|
||||
long SolarisProcess_compareByKey(const Process* v1, const Process* v2, ProcessField field);
|
||||
|
||||
bool Process_isThread(const Process* this);
|
||||
|
||||
|
Reference in New Issue
Block a user