Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MPIfR-BDG
psrdada_cpp
Commits
352ceaae
Commit
352ceaae
authored
Apr 15, 2021
by
Jason Wu
Browse files
output filename fix
parent
b6c735c0
Pipeline
#98484
failed with stages
in 3 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
psrdada_cpp/effelsberg/edd/src/dada_disk_sink_multithread.cpp
View file @
352ceaae
...
...
@@ -44,7 +44,7 @@ bool DiskSinkMultithread::operator()(RawBytes& block)
ascii_header_set
(
_loop_header
,
"OBS_OFFSET"
,
"%ld"
,
_counter
+
ii
*
block
.
used_bytes
()
/
_nthread
);
ascii_header_set
(
_loop_header
,
"FILE_SIZE"
,
"%ld"
,
block
.
used_bytes
()
/
_nthread
);
std
::
stringstream
fname
;
fname
<<
_start_time
<<
std
::
setw
(
20
)
<<
std
::
setfill
(
'0'
)
<<
_counter
+
ii
*
block
.
used_bytes
()
/
_nthread
<<
".dada"
;
fname
<<
_start_time
<<
std
::
setw
(
20
)
<<
"_"
<<
std
::
setfill
(
'0'
)
<<
_counter
+
ii
*
block
.
used_bytes
()
/
_nthread
<<
".dada"
;
BOOST_LOG_TRIVIAL
(
debug
)
<<
"filename"
<<
fname
.
str
();
_output_streams
[
ii
].
open
(
fname
.
str
().
c_str
(),
std
::
ios
::
out
|
std
::
ios
::
app
|
std
::
ios
::
binary
);
_output_streams
[
ii
].
write
((
char
*
)
_loop_header
,
HEADER_SIZE
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment