diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-30 14:21:40 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-30 14:21:40 -0200 |
commit | 3ed877f83fc0a49ecd082f2dfef6aa7f76d3f78e (patch) | |
tree | f9983fb68005330189b89c8b490316fc3010020a | |
parent | 2efb5a4c5528005925669eb76c33e8e11ed3ec02 (diff) |
Set default sort keys in default screens
-rw-r--r-- | Settings.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) { |