From 4531b31d92d23072fa978a3dedcbcab50c936188 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Thu, 21 Jan 2021 14:27:23 +0100 Subject: Sort out the mess around column sorting that had accumulated over time --- openbsd/OpenBSDProcess.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbsd') 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", -- cgit v1.2.3