Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
eb8ca9be
Commit
eb8ca9be
authored
Jan 30, 2018
by
Hisham Muhammad
Browse files
Set default sort keys in default screens
parent
401d19be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Settings.c
View file @
eb8ca9be
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment