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
ff4ef910
Commit
ff4ef910
authored
Aug 16, 2019
by
Carla Guillen
Browse files
Removing unnecessary check.
parent
ae109036
Changes
1
Hide whitespace changes
Inline
Side-by-side
analytics/operators/smucngperf/SMUCNGPerfOperator.cpp
View file @
ff4ef910
...
...
@@ -58,15 +58,6 @@ void SMUCNGPerfOperator::printConfig(LOG_LEVEL ll) {
void
SMUCNGPerfOperator
::
compute
(
U_Ptr
unit
)
{
auto
inputs
=
unit
->
getInputs
();
auto
timestamp
=
getTimestamp
()
-
10e9
;
//ToDo timestamp minus some time...
if
(
_metricToPosition
.
size
()
<
3
)
{
for
(
auto
&
inSensor
:
unit
->
getInputs
()){
_metricToPosition
[
inSensor
->
getMetric
()]
=
inSensor
->
getPosition
();
}
for
(
auto
&
outSensor
:
unit
->
getOutputs
()){
_metricToPosition
[
outSensor
->
getMetric
()]
=
outSensor
->
getPosition
();
}
}
for
(
auto
&
outSensor
:
unit
->
getOutputs
()){
if
(
outSensor
->
getMetric
()
==
SMUCSensorBase
::
CPI
)
{
std
::
vector
<
reading_t
>
&
instructions
=
_buffers
[
0
];
...
...
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