diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-03 07:50:28 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-03 07:50:28 -0600 |
commit | a303d38445a874c8281ed726dfef6aa8546d20fe (patch) | |
tree | 7b50c8dd8df8802d6de3cdb25ced341ca8cb64e8 | |
parent | Get rid of binaries (diff) | |
download | csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.tar csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.tar.gz csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.tar.bz2 csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.tar.lz csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.tar.xz csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.tar.zst csci4061-a303d38445a874c8281ed726dfef6aa8546d20fe.zip |
Comments and other assorted messing
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); } |