From df53f899e108495e824c5a520f1ccd78a494cb8b Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sun, 4 Oct 2020 11:11:58 -0500 Subject: Add 1 to each wait to for the shuffle and the chonk --- P1/src/mapreduce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'P1/src') diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c index 807c1af..1f0b2bb 100644 --- a/P1/src/mapreduce.c +++ b/P1/src/mapreduce.c @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { } } - for (int i = 0; i < nMappers; i++) { + for (int i = 0; i <= nMappers; i++) { //Hopefully this works wait(NULL); } @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) { } } - for (int i = 0; i < nReducers; i++) { + for (int i = 0; i <= nReducers; i++) { //Maybe this works too? wait(NULL); } -- cgit v1.2.3