aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-04 11:11:58 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-04 11:11:58 -0500
commitdf53f899e108495e824c5a520f1ccd78a494cb8b (patch)
treeeb45308eda23d075398ffbc944fa7a784a84e92d /P1/src
parentMerge branch 'master' of github.umn.edu:STRAP012/csci4061Projects (diff)
downloadcsci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar
csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.gz
csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.bz2
csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.lz
csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.xz
csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.tar.zst
csci4061-df53f899e108495e824c5a520f1ccd78a494cb8b.zip
Add 1 to each wait to for the shuffle and the chonk
Diffstat (limited to '')
-rw-r--r--P1/src/mapreduce.c4
1 files changed, 2 insertions, 2 deletions
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);
}