diff --git a/yeeshell.c b/yeeshell.c index 87bc778..c39d9be 100644 --- a/yeeshell.c +++ b/yeeshell.c @@ -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; }