diff options
-rw-r--r-- | P2/lib/utils.c | 5 |
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) { |