Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
2814e9d8
Commit
2814e9d8
authored
Apr 29, 2017
by
Joao Paulo Magalhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ResultsCheckerEntry::NumThreads()
parent
92034a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
output_test.h
test/output_test.h
+2
-2
No files found.
test/output_test.h
View file @
2814e9d8
...
@@ -75,9 +75,9 @@ struct ResultsCheckerEntry {
...
@@ -75,9 +75,9 @@ struct ResultsCheckerEntry {
ResultsCheckerEntry
(
std
::
string
const
&
n
)
:
name
(
n
)
{}
ResultsCheckerEntry
(
std
::
string
const
&
n
)
:
name
(
n
)
{}
int
NumThreads
()
const
{
int
NumThreads
()
const
{
auto
pos
=
name
.
find
_last_of
(
"/threads:"
);
auto
pos
=
name
.
find
(
"/threads:"
);
if
(
pos
==
name
.
npos
)
return
1
;
if
(
pos
==
name
.
npos
)
return
1
;
auto
end
=
name
.
find
_last_of
(
'/'
,
pos
+
9
);
auto
end
=
name
.
find
(
'/'
,
pos
+
9
);
std
::
stringstream
ss
;
std
::
stringstream
ss
;
ss
<<
name
.
substr
(
pos
+
9
,
end
);
ss
<<
name
.
substr
(
pos
+
9
,
end
);
int
num
=
1
;
int
num
=
1
;
...
...
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