aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-28 18:25:42 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-28 18:25:42 -0500
commit330126c6d7f3f2ef5c71cffa51bff06c370eed15 (patch)
tree2769b7e29c6ce91b3692df19f7c1d98da142b387
parentGet rid of old comments and other faff (diff)
downloadcsci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.tar
csci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.tar.gz
csci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.tar.bz2
csci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.tar.lz
csci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.tar.xz
csci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.tar.zst
csci4061-330126c6d7f3f2ef5c71cffa51bff06c370eed15.zip
GEt rid of old stuff
-rw-r--r--P2/lib/utils.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index e23c735..b292a7f 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -80,12 +80,13 @@ int getInterData(char *Qkey, int reducerID) {
int id = openQueue();
msgrcv(id, &message, chunkSize, reducerID, 0);
Qkey = message.msgText;
- if (strncmp("END", message.msgText, 3))
- {
- return 0;
- } else {
- return 1;
- }
+ return strncmp("END", message.msgText, 3);
+ // if (strncmp("END", message.msgText, 3))
+ // {
+ // return 0;
+ // } else {
+ // return 1;
+ // }
}
void shuffle(int nMappers, int nReducers) {