Skip to content

Commit

Permalink
fixed smuos#5, child should print the results of median
Browse files Browse the repository at this point in the history
  • Loading branch information
Yumingz committed Sep 30, 2014
1 parent 9514a37 commit 585d03c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ int main(int argc, char *argv[]) {
else if (rc == 1) {
printf("Hello, I am child, I should print the median");
int child = median(pt, length);
fprintf(stdout, "Median is: %d\n", child);
}
else if (rc == 2) {
else if (rc == 2){
printf("Hello, I am parent, I should print the mean");
int parent = mean(pt, length);
}
Expand Down

0 comments on commit 585d03c

Please sign in to comment.