summaryrefslogtreecommitdiffstats
path: root/CommandScreen.c
diff options
context:
space:
mode:
authorNarendran Gopalakrishnan <g_narendran142@yahoo.com>2020-10-17 16:24:45 +0530
committerBenBE <BenBE@geshi.org>2020-11-24 19:05:48 +0100
commit09fe94da18d33d2c4e1fe415e8346fa99b9944b4 (patch)
treed5d405e4bfdbbe8e4940ffe92f8b50def3cb6122 /CommandScreen.c
parent42c842c190912de58ccf3f41bd58c452c595e40d (diff)
Improving Command display/sort
Diffstat (limited to 'CommandScreen.c')
-rw-r--r--CommandScreen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/CommandScreen.c b/CommandScreen.c
index 578b3ae1..d3428290 100644
--- a/CommandScreen.c
+++ b/CommandScreen.c
@@ -16,7 +16,7 @@ static void CommandScreen_scan(InfoScreen* this) {
int idx = MAXIMUM(Panel_getSelectedIndex(panel), 0);
Panel_prune(panel);
- const char* p = this->process->comm;
+ const char* p = Process_getCommand(this->process);
char* line = xMalloc(COLS + 1);
int line_offset = 0, last_spc = -1, len;
for (; *p != '\0'; p++, line_offset++) {
@@ -46,7 +46,7 @@ static void CommandScreen_scan(InfoScreen* this) {
}
static void CommandScreen_draw(InfoScreen* this) {
- InfoScreen_drawTitled(this, "Command of process %d - %s", this->process->pid, this->process->comm);
+ InfoScreen_drawTitled(this, "Command of process %d - %s", this->process->pid, Process_getCommand(this->process));
}
const InfoScreenClass CommandScreen_class = {

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