Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SATFON
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
Pascal Pieper
SATFON
Commits
a03940e0
Commit
a03940e0
authored
6 years ago
by
Pascal Pieper
Browse files
Options
Downloads
Patches
Plain Diff
Correct deserialisation
parent
47a7f9a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/powerloss_failpoints.h
+4
-3
4 additions, 3 deletions
tests/powerloss_failpoints.h
with
4 additions
and
3 deletions
tests/powerloss_failpoints.h
+
4
−
3
View file @
a03940e0
...
...
@@ -96,9 +96,10 @@ public:
{
size_t
len
;
s
.
read
(
reinterpret_cast
<
char
*>
(
&
len
),
sizeof
(
size_t
));
char
buf
[
len
];
char
buf
[
len
+
1
];
s
.
read
(
buf
,
len
);
string
file
=
buf
;
buf
[
len
]
=
0
;
string
file
(
buf
);
size_t
points
;
s
.
read
(
reinterpret_cast
<
char
*>
(
&
points
),
sizeof
(
size_t
));
cout
<<
"File "
<<
file
<<
": "
<<
points
<<
" points"
<<
endl
;
...
...
@@ -140,7 +141,7 @@ public:
{
if
(
visitedPoints
.
find
(
file
)
==
visitedPoints
.
end
())
{
//new file
visitedPoints
[
file
]
=
vector
<
VisitedWithLine
>
();
visitedPoints
[
string
(
file
)
]
=
vector
<
VisitedWithLine
>
();
}
if
(
visitedPoints
[
file
].
size
()
<=
counter
)
{
//New point in file
...
...
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