From bcf95c1ebc713a7ee393da480939520717988b81 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 3 Nov 2020 11:07:34 -0600 Subject: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa --- P2/lib/utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'P2/lib/utils.c') 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) { -- cgit v1.2.3