summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-30 14:21:40 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commit3b819daf820c1292f4fe26e323379eab1dd995fb (patch)
tree754353ae39ad70a4577d7265c741b8f31364fea2
parentd9f8cdf0a6910146f4690379c372a7e0d13b4d00 (diff)
Set default sort keys in default screens
-rw-r--r--Settings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Settings.c b/Settings.c
index 7fb1cbb9..67505e12 100644
--- a/Settings.c
+++ b/Settings.c
@@ -267,7 +267,9 @@ ScreenSettings* Settings_newScreen(Settings* this, const char* name, const char*
static void Settings_defaultScreens(Settings* this) {
Settings_newScreen(this, "Default", "PID USER PRIORITY NICE M_SIZE M_RESIDENT M_SHARE STATE PERCENT_CPU PERCENT_MEM TIME Command");
- Settings_newScreen(this, "I/O", "PID IO_PRIORITY USER IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command");
+ this->screens[0]->sortKey = toFieldIndex("PERCENT_CPU");
+ Settings_newScreen(this, "I/O", "PID IO_PRIORITY USER IO_RATE IO_READ_RATE IO_WRITE_RATE PERCENT_SWAP_DELAY PERCENT_IO_DELAY Command");
+ this->screens[0]->sortKey = toFieldIndex("IO_RATE");
}
static bool Settings_read(Settings* this, const char* fileName) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy