陈越 3 years ago
parent
commit
2c557e3c00
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mytop.c

+ 2
- 2
mytop.c View File

@ -329,7 +329,7 @@ void mytop()
{
if (chdir("/proc") != 0) {
perror("chdir to /proc" );
return 1;
return;
}
print_memory();
getkinfo();
@ -337,5 +337,5 @@ void mytop()
if(prev_proc==NULL)
get_procs();
print_procs(prev_proc,proc,1);
return 0;
return;
}

Loading…
Cancel
Save