aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-03 11:07:34 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-03 11:07:34 -0600
commitbcf95c1ebc713a7ee393da480939520717988b81 (patch)
tree8fa8017a58c7a55401fee59ca94583ffcab88366 /P2/lib
parentfix made problem (diff)
downloadcsci4061-bcf95c1ebc713a7ee393da480939520717988b81.tar
csci4061-bcf95c1ebc713a7ee393da480939520717988b81.tar.gz
csci4061-bcf95c1ebc713a7ee393da480939520717988b81.tar.bz2
csci4061-bcf95c1ebc713a7ee393da480939520717988b81.tar.lz
csci4061-bcf95c1ebc713a7ee393da480939520717988b81.tar.xz
csci4061-bcf95c1ebc713a7ee393da480939520717988b81.tar.zst
csci4061-bcf95c1ebc713a7ee393da480939520717988b81.zip
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 9a12ff0..8cce3e1 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -82,9 +82,10 @@ int getInterData(char *Qkey, int reducerID) {
// How do we traverse the directory if we're not given it as an arg?
int id = openQueue();
msgrcv(id, &message, chunkSize, reducerID, 0);
+ printf("\n%s\n", message.msgText);
*Qkey = *message.msgText;
- printf("%s\n", Qkey);
- return strncmp("END", message.msgText, 3) == 0;
+ // printf("%s\n", Qkey);
+ return (strncmp("END", message.msgText, 3) == 0);
}
void shuffle(int nMappers, int nReducers) {