diff --git a/mm b/mm index 5fb1da5..bb0537f 100755 Binary files a/mm and b/mm differ diff --git a/mm.c b/mm.c index 9306ab1..092807c 100644 --- a/mm.c +++ b/mm.c @@ -95,9 +95,9 @@ int main(int argc, char *argv[]) { fprintf(stdout, "The median is: %f", median(pt, length)); // If the process is parent } else if (rc > 0){ - fprintf(stdout, "This is parent prcesss(pid:%d)", (int)getpid()); - fprintf(stdout, "The mean is: %f", mean(pt, length)); - fprintf(stdout, "\n%s: FIN. \n",argv[0]); + fprintf(stdout, "\nThis is parent prcesss(pid:%d)\n", (int)getpid()); + fprintf(stdout, "The mean is: %f\n", mean(pt, length)); + fprintf(stdout, "%s: FIN. \n",argv[0]); } return 0; diff --git a/mm.c~ b/mm.c~ index 61ca529..7df153a 100644 --- a/mm.c~ +++ b/mm.c~ @@ -95,12 +95,10 @@ int main(int argc, char *argv[]) { fprintf(stdout, "The median is: %f", median(pt, length)); // If the process is parent } else if (rc > 0){ - fprintf(stdout, "This is parent prcesss(pid:%d)", (int)getpid()); - fprintf(stdout, "The mean is: %f", mean(pt, length)); + fprintf(stdout, "\nThis is parent prcesss(pid:%d)\n", (int)getpid()); + fprintf(stdout, "The mean is: %f\n", mean(pt, length)); + fprintf(stdout, "\n%s: FIN. \n",argv[0]); } - - // Print FIN - fprintf(stdout, "\n%s: FIN. \n", argv[0]); return 0;