diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-28 18:25:42 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-28 18:25:42 -0500 |
commit | 330126c6d7f3f2ef5c71cffa51bff06c370eed15 (patch) | |
tree | 2769b7e29c6ce91b3692df19f7c1d98da142b387 /P2 | |
parent | Get rid of old comments and other faff (diff) | |
download | csci4061-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
Diffstat (limited to 'P2')
-rw-r--r-- | P2/lib/utils.c | 13 |
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) { |