Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MP3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ajf5
MP3
Commits
62a48eb4
Commit
62a48eb4
authored
4 years ago
by
ajf5
Browse files
Options
Downloads
Patches
Plain Diff
bug fix
parent
1e10f194
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
Makefile
+1
-1
1 addition, 1 deletion
Makefile
Wc
+0
-0
0 additions, 0 deletions
Wc
src/main.cpp
+3
-4
3 additions, 4 deletions
src/main.cpp
with
4 additions
and
5 deletions
.DS_Store
+
0
−
0
View file @
62a48eb4
No preview for this file type
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
1
View file @
62a48eb4
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Wc
deleted
100755 → 0
+
0
−
0
View file @
1e10f194
File deleted
This diff is collapsed.
Click to expand it.
src/main.cpp
+
3
−
4
View file @
62a48eb4
...
...
@@ -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
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment