diff options
author | Daniel Lange <DLange@git.local> | 2021-01-21 14:27:23 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2021-01-21 14:27:23 +0100 |
commit | 4531b31d92d23072fa978a3dedcbcab50c936188 (patch) | |
tree | 67d1e211d5d0c3d0d747bf7cd676a8a1cc040184 /openbsd | |
parent | b20bb543ced602748d3d5fad191dda07919be13d (diff) |
Sort out the mess around column sorting that had accumulated over time
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/OpenBSDProcess.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsd/OpenBSDProcess.c b/openbsd/OpenBSDProcess.c index 00aea637..cb04055e 100644 --- a/openbsd/OpenBSDProcess.c +++ b/openbsd/OpenBSDProcess.c @@ -81,12 +81,14 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = { .title = " MINFLT ", .description = "Number of minor faults which have not required loading a memory page from disk", .flags = 0, + .defaultSortDesc = true, }, [MAJFLT] = { .name = "MAJFLT", .title = " MAJFLT ", .description = "Number of major faults which have required loading a memory page from disk", .flags = 0, + .defaultSortDesc = true, }, [PRIORITY] = { .name = "PRIORITY", @@ -117,12 +119,14 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = { .title = " VIRT ", .description = "Total program size in virtual memory", .flags = 0, + .defaultSortDesc = true, }, [M_RESIDENT] = { .name = "M_RESIDENT", .title = " RES ", .description = "Resident set size, size of the text and data sections, plus stack usage", .flags = 0, + .defaultSortDesc = true, }, [ST_UID] = { .name = "ST_UID", @@ -135,18 +139,21 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = { .title = "CPU% ", .description = "Percentage of the CPU time the process used in the last sampling", .flags = 0, + .defaultSortDesc = true, }, [PERCENT_NORM_CPU] = { .name = "PERCENT_NORM_CPU", .title = "NCPU%", .description = "Normalized percentage of the CPU time the process used in the last sampling (normalized by cpu count)", .flags = 0, + .defaultSortDesc = true, }, [PERCENT_MEM] = { .name = "PERCENT_MEM", .title = "MEM% ", .description = "Percentage of the memory the process is using, based on resident memory size", .flags = 0, + .defaultSortDesc = true, }, [USER] = { .name = "USER", @@ -159,6 +166,7 @@ const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = { .title = " TIME+ ", .description = "Total time the process has spent in user and system time", .flags = 0, + .defaultSortDesc = true, }, [NLWP] = { .name = "NLWP", |