aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-11-02 21:37:54 -0600
committerAndrea Smith <smit9523@umn.edu>2020-11-02 21:37:54 -0600
commit93fa09a84a3db44489a64438fcb9ad51c7ab2034 (patch)
treea42190bb21765d4e7d3204c4e74ef7883c5d90db /P2
parentFixed sendChunkData? (diff)
downloadcsci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.tar
csci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.tar.gz
csci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.tar.bz2
csci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.tar.lz
csci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.tar.xz
csci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.tar.zst
csci4061-93fa09a84a3db44489a64438fcb9ad51c7ab2034.zip
Removed debug statements
Diffstat (limited to '')
-rw-r--r--P2/lib/utils.c6
-rw-r--r--P2/lib/utils.obin0 -> 16544 bytes
-rwxr-xr-xP2/mapperbin0 -> 32288 bytes
-rwxr-xr-xP2/mapreducebin0 -> 29872 bytes
-rwxr-xr-xP2/reducerbin0 -> 31216 bytes
5 files changed, 3 insertions, 3 deletions
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
--- /dev/null
+++ b/P2/lib/utils.o
Binary files differ
diff --git a/P2/mapper b/P2/mapper
new file mode 100755
index 0000000..13d5380
--- /dev/null
+++ b/P2/mapper
Binary files differ
diff --git a/P2/mapreduce b/P2/mapreduce
new file mode 100755
index 0000000..a4dd550
--- /dev/null
+++ b/P2/mapreduce
Binary files differ
diff --git a/P2/reducer b/P2/reducer
new file mode 100755
index 0000000..e7bcf0d
--- /dev/null
+++ b/P2/reducer
Binary files differ