Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Achim Morschhauser
GeomagLogger
Commits
7142056a
Commit
7142056a
authored
Dec 30, 2021
by
Achim Morschhauser
Browse files
Fix initialization of struct tm
parent
38a25f41
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/buffer_obs_file.cpp
View file @
7142056a
...
...
@@ -140,7 +140,7 @@ int buffer_obs_file::open(std::string filename) {
int
buffer_obs_file
::
check
(
data_obs
*
data
)
{
struct
tm
time
;
struct
tm
time
=
{
0
}
;
size_t
smax
=
40
;
char
filename
[
smax
];
...
...
src/data_obs.cpp
View file @
7142056a
...
...
@@ -257,6 +257,7 @@ int data_obs::get_time(struct tm* tm) const{
tm
->
tm_sec
=
sec
;
tm
->
tm_yday
=
0
;
tm
->
tm_wday
=
0
;
tm
->
tm_isdst
=
0
;
return
(
0
);
...
...
@@ -736,7 +737,7 @@ int data_obs::filter_fir_sym_data(std::vector <data_obs*>* data,
<<
"Found missing data in filter: "
<<
j
<<
" "
<<
missing
[
j
]
<<
" "
<<
missing_N
[
j
]
<<
" "
<<
data
->
size
()
<<
i
<<
" "
<<
data
->
size
()
<<
std
::
endl
;
// Calculate filtered data
}
else
{
...
...
Write
Preview
Supports
Markdown
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