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
18e7d3da
Commit
18e7d3da
authored
Aug 07, 2019
by
Carla Guillen Carias
Browse files
Adding severity value
parent
5c22da7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
analytics/operators/smucngperf/SMUCSensorBase.h
View file @
18e7d3da
...
...
@@ -20,7 +20,7 @@ public:
FREQUENCY
};
public:
SMUCSensorBase
(
const
std
::
string
&
name
)
:
SensorBase
(
name
),
_scaling_factor
(
1
){}
SMUCSensorBase
(
const
std
::
string
&
name
)
:
SensorBase
(
name
),
_scaling_factor
(
1
)
,
_position
(
0
),
_severity
(
-
1
)
{}
virtual
~
SMUCSensorBase
(){}
unsigned
int
getScalingFactor
()
const
{
...
...
@@ -39,10 +39,14 @@ public:
_position
=
position
;
}
void
setSeverity
(
float
severity
){
_severity
=
severity
;
}
private:
unsigned
int
_position
;
unsigned
int
_scaling_factor
;
float
_severity
;
};
using
SMUCNGPtr
=
std
::
shared_ptr
<
SMUCSensorBase
>
;
...
...
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