Pārlūkot izejas kodu

test mytop

master
10195501441 pirms 3 gadiem
vecāks
revīzija
ccc95c65c6
1 mainītis faili ar 2 papildinājumiem un 11 dzēšanām
  1. +2
    -11
      yeeshell.c

+ 2
- 11
yeeshell.c Parādīt failu

@ -354,16 +354,7 @@ int built_in(char **args)
}
else if (!strcmp(args[0], "mytop"))
{
int flag = builtin_mytop();
if (flag == -1)
{
printf("yeeshell: unable to get memory info.\n");
}
else if (flag == -2)
{
printf("yeeshell: unable to get CPU info.\n");
}
return flag;
return builtin_mytop();
}
else
{
@ -549,7 +540,7 @@ void parse_file(pid_t pid)
if (slot < 0 || slot >= nr_total)
{
fprintf(stderr, "top: unreasonable endpoint number %d\n", endpt);
//fprintf(stderr, "top: unreasonable endpoint number %d\n", endpt);
fclose(fp);
return;
}

Notiek ielāde…
Atcelt
Saglabāt