From 09fe94da18d33d2c4e1fe415e8346fa99b9944b4 Mon Sep 17 00:00:00 2001 From: Narendran Gopalakrishnan Date: Sat, 17 Oct 2020 16:24:45 +0530 Subject: Improving Command display/sort --- CommandScreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CommandScreen.c') 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 = { -- cgit v1.2.3