aboutsummaryrefslogtreecommitdiffstats
path: root/P2/lib
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-03 19:05:18 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-03 19:05:18 -0600
commit8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201 (patch)
treec7dbc964beb5964fd2342a1ffab8d0ddbe0c29ee /P2/lib
parentI'm a dumbass (diff)
downloadcsci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.tar
csci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.tar.gz
csci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.tar.bz2
csci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.tar.lz
csci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.tar.xz
csci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.tar.zst
csci4061-8da3f28ef78a66ab3d4e3636ec0f1c90b6cfe201.zip
get rid of debugs (not get rid of just comment)
Diffstat (limited to 'P2/lib')
-rw-r--r--P2/lib/utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 85bcc37..5ff4e2e 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -23,7 +23,7 @@ char *getChunkData(int mapperID) {
int mid = openQueue();
//printf("MAPPER ID:%d\n", mapperID);
msgrcv(mid, &message, MSGSIZE, mapperID, 0);
- printf("\n%s\n", message.msgText);
+ // printf("\n%s\n", message.msgText);
// printf("%d\n", strncmp("END", message.msgText, 3));
if (strncmp("END", message.msgText, 3) == 0)
return NULL;
@@ -96,7 +96,7 @@ int getInterData(char *Qkey, int reducerID) {
// printf("INTER DATA: %s\n", message.msgText);
// *Qkey = *message.msgText;
strcpy(Qkey, message.msgText);
- printf("INTER DATA: %s\n", Qkey);
+ // printf("INTER DATA: %s\n", Qkey);
return (strncmp("END", message.msgText, 3) != 0);
}
@@ -115,8 +115,8 @@ void shuffle(int nMappers, int nReducers) {
continue;
sprintf(message.msgText, "%s/%s", newpath, entry -> d_name);
message.msgType = hashFunction(entry -> d_name, nReducers);
- printf("SENT SHUFFLE:%s\n", message.msgText);
- printf("%ld\n", message.msgType);
+ // printf("SENT SHUFFLE:%s\n", message.msgText);
+ // printf("%ld\n", message.msgType);
msgsnd(id, &message, MSGSIZE, 0);
}
closedir(dir);