From 330126c6d7f3f2ef5c71cffa51bff06c370eed15 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 28 Oct 2020 18:25:42 -0500 Subject: GEt rid of old stuff --- P2/lib/utils.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'P2') 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) { -- cgit v1.2.3