Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
multiTraj
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangdawei
multiTraj
Commits
dc66d161
Commit
dc66d161
authored
Jan 11, 2022
by
wangdawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
4b2551ef
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt.user
CMakeLists.txt.user
+0
-0
multi_traj.cpp
apps/multi_traj.cpp
+7
-5
No files found.
CMakeLists.txt.user
View file @
dc66d161
This diff is collapsed.
Click to expand it.
apps/multi_traj.cpp
View file @
dc66d161
...
...
@@ -39,12 +39,14 @@ int main(int argc, char *argv[])
getCrossTasks
(
activeTraces
,
crossTasks
);
if
(
crossTasks
.
size
()
==
0
){
LOG
(
WARNING
)
<<
"crossTasks.size() == 0"
;
}
else
{
sort
(
crossTasks
.
begin
(),
crossTasks
.
end
(),
[](
const
string
&
query
,
const
string
&
target
)
{
return
stoi
(
boost
::
filesystem
::
path
(
query
).
filename
().
string
())
<
stoi
(
boost
::
filesystem
::
path
(
target
).
filename
().
string
());
});
}
sort
(
crossTasks
.
begin
(),
crossTasks
.
end
(),
[](
const
string
&
query
,
const
string
&
target
)
{
return
stoi
(
boost
::
filesystem
::
path
(
query
).
filename
().
string
())
<
stoi
(
boost
::
filesystem
::
path
(
target
).
filename
().
string
());
});
for
(
string
task
:
crossTasks
){
LOG
(
INFO
)
<<
"cross task chekc in: "
<<
task
;
}
...
...
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