From b63f67c335c572f8973173029423c79df0411b3b Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 3 Nov 2020 09:21:03 -0600 Subject: MAybe truly traverse directories --- P2/lib/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'P2') diff --git a/P2/lib/utils.c b/P2/lib/utils.c index c7f752d..92cfbec 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -97,7 +97,6 @@ void shuffle(int nMappers, int nReducers) { for (int i = 1; i <= nMappers; i++) { char newpath[100]; sprintf(newpath, "%s/output/MapOut/Map_%d", path, i); - printf("%s\n", newpath); DIR *dir = opendir(newpath); struct dirent* entry; while ((entry = readdir(dir)) != NULL) { @@ -105,6 +104,7 @@ void shuffle(int nMappers, int nReducers) { continue; sprintf(message.msgText, "%s/%s", newpath, entry -> d_name); message.msgType = hashFunction(entry -> d_name, nReducers); + printf("%s\n", message.msgText); printf("%ld\n", message.msgType); msgsnd(id, &message, chunkSize, 0); } -- cgit v1.2.3