Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
scdaq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
scouting-demonstrator
scdaq
Commits
4c100e76
Commit
4c100e76
authored
2 years ago
by
Thomas Owen James
Browse files
Options
Downloads
Patches
Plain Diff
fixed slice re-assignment for output by size
parent
810c0880
No related branches found
Branches containing commit
Tags
v1.5.1
Tags containing commit
1 merge request
!54
fixed slice re-assignment for output by size
Pipeline
#5234167
passed
2 years ago
Stage: check
Stage: build
Stage: run
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OutputBySize.cc
+8
-1
8 additions, 1 deletion
src/OutputBySize.cc
src/OutputBySize.h
+1
-0
1 addition, 0 deletions
src/OutputBySize.h
with
9 additions
and
1 deletion
src/OutputBySize.cc
+
8
−
1
View file @
4c100e76
...
...
@@ -54,6 +54,7 @@ OutputBySizeStream::OutputBySizeStream(const std::string output_filename_base,
control
(
c
),
current_file
(
0
),
current_run_number
(
0
),
min_buffer_queue_size_
(
1000
),
journal_name
(
my_output_filename_base
+
"/"
+
output_filename_prefix
+
'_'
+
journal_file
)
{
LOG
(
TRACE
)
<<
"Created output filter at "
<<
static_cast
<
void
*>
(
this
);
...
...
@@ -113,8 +114,14 @@ void *OutputBySizeStream::operator()(void *item) {
close_and_move_current_file
();
file_count
=
-
1
;
}
if
(
Slice
::
current_queue_size
()
<
min_buffer_queue_size_
)
{
LOG
(
TRACE
)
<<
"New minimum queue size is "
<<
Slice
::
current_queue_size
()
<<
" total counts "
<<
totcounts
;
min_buffer_queue_size_
=
Slice
::
current_queue_size
();
}
Slice
::
giveAllocated
(
&
out
);
out
.
free
();
return
NULL
;
}
...
...
This diff is collapsed.
Click to expand it.
src/OutputBySize.h
+
1
−
0
View file @
4c100e76
...
...
@@ -30,6 +30,7 @@ class OutputBySizeStream : public tbb::filter {
FILE
*
current_file
;
uint32_t
current_run_number
;
std
::
string
journal_name
;
size_t
min_buffer_queue_size_
;
};
#endif
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