aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 92cfbec..88fe5af 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -30,7 +30,7 @@ char *getChunkData(int mapperID) {
}
char* value = message.msgText;
// printf("%s\n", message.msgText);
- printf("%s\n", value);
+ // printf("%s\n", value);
return value;
//return &(message.msgText);
}
@@ -54,7 +54,7 @@ void sendChunkData(char *inputFile, int nMappers) {
fseek(file, (i - 1023), SEEK_CUR);
message.msgType = (map++ % nMappers) + 1;
- printf("%s\n\n",message.msgText);
+ // printf("%s\n\n",message.msgText);
msgsnd(msgid, &message, map, 0);
}
@@ -84,7 +84,7 @@ int getInterData(char *Qkey, int reducerID) {
int id = openQueue("reduce");
msgrcv(id, &message, chunkSize, reducerID, 0);
*Qkey = *message.msgText;
- // printf("%s\n", Qkey);
+ printf("%s\n", Qkey);
return strncmp("END", message.msgText, 3) == 0;
}