Commit 239292c1 authored by Dave Davenport's avatar Dave Davenport

Show all arguments

parent 82e6280c
......@@ -99,6 +99,11 @@ static void load_pid ( pid_t pid, TOPProcessInfo *entry )
glibtop_proc_args args;
char *arg = glibtop_get_proc_args ( &(args),entry->pid, 0 );
for ( size_t i = 0; i < (args.size-1); i++){
if ( arg[i] == '\0' ){
arg[i] = ' ';
}
}
entry->command_args = g_path_get_basename ( arg );
g_free ( arg );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment