diff options
Diffstat (limited to '')
-rw-r--r-- | P2/lib/utils.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index b0d4f6e..da8e856 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -44,13 +44,12 @@ void sendChunkData(char *inputFile, int nMappers) { message.msgText[i] = '\0'; i--; } - printf("%d\n", validChar(message.msgText[i])); // DEBUG! fseek(file, (i - 1023), SEEK_CUR); - printf("%s\n", message.msgText); - message.msgType = (map++ % nMappers) + 1 ; - //DEBUG! NOT ACTUALLY FUNCTIONAL (like at all) + //The first mapper sent to is 2 instead of 1. + //Is this a problem? Probably not. + message.msgType = (map++ % nMappers) + 1; msgsnd(msgid, &message, map, 0); } |