Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
d87022f9
Commit
d87022f9
authored
Jan 20, 2020
by
Alessio Netti
Browse files
Analytics: removed unnecessary error logging in Smoothing plugin
parent
d64b73e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
analytics/operators/smoothing/SmoothingOperator.cpp
View file @
d87022f9
...
...
@@ -48,9 +48,10 @@ void SmoothingOperator::compute(U_Ptr unit) {
_buffer
.
clear
();
SmoothingSBPtr
sIn
=
unit
->
getInputs
()[
0
],
sOut
=
unit
->
getOutputs
()[
0
];
uint64_t
startTs
=
sOut
->
getTimestamp
()
?
getTimestamp
()
-
sOut
->
getTimestamp
()
:
0
;
// Throwing an error does not make sense here - the query will often fail depending on insert batching
if
(
!
_queryEngine
.
querySensor
(
sIn
->
getName
(),
startTs
,
0
,
_buffer
,
true
))
throw
std
::
runtime_error
(
"Operator "
+
_name
+
": cannot read from sensor "
+
sIn
->
getName
()
+
"!"
)
;
return
;
for
(
const
auto
&
v
:
_buffer
)
{
if
(
v
.
timestamp
>
sOut
->
getTimestamp
())
{
...
...
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