aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--P2/lib/utils.c13
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) {