Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
7fe10fa1
Unverified
Commit
7fe10fa1
authored
May 22, 2020
by
odimka
Committed by
GitHub
May 22, 2020
Browse files
Fixed machine list parsing: s/find_first_of/find (#3108)
parent
7e81d9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/network/linkers_socket.cpp
src/network/linkers_socket.cpp
+1
-1
No files found.
src/network/linkers_socket.cpp
View file @
7fe10fa1
...
@@ -91,7 +91,7 @@ void Linkers::ParseMachineList(const std::string& machines, const std::string& f
...
@@ -91,7 +91,7 @@ void Linkers::ParseMachineList(const std::string& machines, const std::string& f
}
}
for
(
auto
&
line
:
lines
)
{
for
(
auto
&
line
:
lines
)
{
line
=
Common
::
Trim
(
line
);
line
=
Common
::
Trim
(
line
);
if
(
line
.
find
_first_of
(
"rank="
)
!=
std
::
string
::
npos
)
{
if
(
line
.
find
(
"rank="
)
!=
std
::
string
::
npos
)
{
std
::
vector
<
std
::
string
>
str_after_split
=
Common
::
Split
(
line
.
c_str
(),
'='
);
std
::
vector
<
std
::
string
>
str_after_split
=
Common
::
Split
(
line
.
c_str
(),
'='
);
Common
::
Atoi
(
str_after_split
[
1
].
c_str
(),
&
rank_
);
Common
::
Atoi
(
str_after_split
[
1
].
c_str
(),
&
rank_
);
continue
;
continue
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment