Skip to content
Snippets Groups Projects
Commit 62a48eb4 authored by ajf5's avatar ajf5
Browse files

bug fix

parent 1e10f194
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -7,7 +7,7 @@ SRC_FILES := src/Node.cpp src/Messages.cpp src/Member.cpp src/UdpSocket.cpp src/
SRC_FILES2 := mappers/wc.cpp src/Utils.cpp
.PHONY: clean
all: clean app
all: clean app map
map:
$(CXX) -o $(APP2) $(SRC_FILES2) $(CFLAGS) $(LIBS)
......
File deleted
......@@ -166,11 +166,10 @@ int main(int argc, char *argv[])
cout << "USAGE: maple maple_exe num_maples sdfs_intermediate_dir sdfs_src_dir" << endl;
continue;
}
struct stat sb;
if (stat(cmdLineInput[1].c_str(), &sb) == 0 && sb.st_mode & S_IXUSR) { cout << endl; }
else {
string testCommand = "./" + cmdLineInput[1] + " > /dev/null 2>&1";
if (system(testCommand.c_str())) {
cout << "[MAPLE] " << cmdLineInput[1] << " does not exist locally" << endl;
continue;
continue;
}
if (!node->isBlackout){
string msg = cmdLineInput[1] + "," + cmdLineInput[2] + "," + cmdLineInput[3] + "," + cmdLineInput[4] + "\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment