Browse Source

test mytop

master
10195501441 3 years ago
parent
commit
4da070790e
1 changed files with 8 additions and 11 deletions
  1. +8
    -11
      yeeshell.c

+ 8
- 11
yeeshell.c View File

@ -399,18 +399,15 @@ int builtin_history(char **args)
int builtin_mytop() int builtin_mytop()
{ {
pid_t pid;
if (pid == 0)
{
int cputimemode = 1;
getkinfo();
mytop_memory();
int cputimemode = 1;
mytop_memory();
getkinfo();
get_procs();
if (prev_proc == NULL)
get_procs(); get_procs();
if (prev_proc == NULL)
get_procs();
print_procs(prev_proc, proc, cputimemode);
exit(0);
}
print_procs(prev_proc, proc, cputimemode);
return 1; return 1;
} }

Loading…
Cancel
Save