From 93fa09a84a3db44489a64438fcb9ad51c7ab2034 Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Mon, 2 Nov 2020 21:37:54 -0600 Subject: Removed debug statements --- P2/lib/utils.c | 6 +++--- P2/lib/utils.o | Bin 0 -> 16544 bytes P2/mapper | Bin 0 -> 32288 bytes P2/mapreduce | Bin 0 -> 29872 bytes P2/reducer | Bin 0 -> 31216 bytes 5 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 P2/lib/utils.o create mode 100755 P2/mapper create mode 100755 P2/mapreduce create mode 100755 P2/reducer (limited to 'P2') diff --git a/P2/lib/utils.c b/P2/lib/utils.c index fa9c235..4e27a3b 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -39,18 +39,18 @@ void sendChunkData(char *inputFile, int nMappers) { // construct chunks of 1024 bytes while(fgets(message.msgText, chunkSize + 1, file) != NULL) { - // TODO! help int i = 1023; while((validChar(message.msgText[i]) )) { message.msgText[i] = '\0'; i--; } printf("%d\n", validChar(message.msgText[i])); - printf("test\n"); + // DEBUG! + fseek(file, (i - 1023), SEEK_CUR); printf("%s\n", message.msgText); message.msgType = (map++ % nMappers) + 1 ; - //THIS IS DEBUG, NOT ACTUALLY FUNCTIONAL (like at all) + //DEBUG! NOT ACTUALLY FUNCTIONAL (like at all) msgsnd(msgid, &message, map, 0); } diff --git a/P2/lib/utils.o b/P2/lib/utils.o new file mode 100644 index 0000000..4a18e0f Binary files /dev/null and b/P2/lib/utils.o differ diff --git a/P2/mapper b/P2/mapper new file mode 100755 index 0000000..13d5380 Binary files /dev/null and b/P2/mapper differ diff --git a/P2/mapreduce b/P2/mapreduce new file mode 100755 index 0000000..a4dd550 Binary files /dev/null and b/P2/mapreduce differ diff --git a/P2/reducer b/P2/reducer new file mode 100755 index 0000000..e7bcf0d Binary files /dev/null and b/P2/reducer differ -- cgit v1.2.3