Currently job artifacts in CI/CD pipelines on LRZ GitLab never expire. Starting from Wed 26.1.2022 the default expiration time will be 30 days (GitLab default). Currently existing artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information:

Commit 18e7d3da authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Adding severity value

parent 5c22da7a
...@@ -20,7 +20,7 @@ public: ...@@ -20,7 +20,7 @@ public:
}; };
public: 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(){} virtual ~SMUCSensorBase(){}
unsigned int getScalingFactor() const { unsigned int getScalingFactor() const {
...@@ -39,10 +39,14 @@ public: ...@@ -39,10 +39,14 @@ public:
_position = position; _position = position;
} }
void setSeverity(float severity){
_severity = severity;
private: private:
unsigned int _position; unsigned int _position;
unsigned int _scaling_factor; unsigned int _scaling_factor;
float _severity;
}; };
using SMUCNGPtr = std::shared_ptr<SMUCSensorBase>; using SMUCNGPtr = std::shared_ptr<SMUCSensorBase>;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment