Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
9c1a3004
Commit
9c1a3004
authored
Jun 21, 2019
by
Alessio Netti
Browse files
Analytics: Aggregator now throw an exception when computing fails
parent
09ffcaaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
analytics/analyzers/aggregator/AggregatorAnalyzer.cpp
View file @
9c1a3004
...
...
@@ -50,10 +50,8 @@ void AggregatorAnalyzer::compute(U_Ptr unit) {
// Since we do not clear the internal buffer, all sensor readings will be accumulated in the same vector
elCtr
=
_buffer
==
nullptr
?
0
:
_buffer
->
size
();
_buffer
=
_queryEngine
.
querySensor
(
in
->
getName
(),
_window
,
0
,
_buffer
);
if
(
!
_buffer
||
_buffer
->
size
()
<=
elCtr
)
{
LOG
(
debug
)
<<
"Analyzer "
<<
_name
<<
" cannot read from sensor "
<<
in
->
getName
()
<<
"!"
;
return
;
}
if
(
!
_buffer
||
_buffer
->
size
()
<=
elCtr
)
throw
std
::
runtime_error
(
"Analyzer "
+
_name
+
": cannot read from sensor "
+
in
->
getName
()
+
"!"
);
}
compute_internal
(
unit
,
_buffer
);
}
...
...
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