From a303d38445a874c8281ed726dfef6aa8546d20fe Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 3 Nov 2020 07:50:28 -0600 Subject: Comments and other assorted messing --- P2/lib/utils.c | 7 +++---- 1 file 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); } -- cgit v1.2.3