Commit 766eafbc authored by Alessio Netti's avatar Alessio Netti

OPA Plugin Bugfixes

- Fixes to minor bugs that kept the plugin from compiling
parent f2ff1eee
......@@ -36,6 +36,9 @@ OpaConfigurator::OpaConfigurator() {
_enumCntData["linkErrorRecovery"] = linkErrorRecovery;
_enumCntData["linkDowned"] = linkDowned;
_enumCntData["uncorrectableErrors"] = uncorrectableErrors;
_groupName = "group";
_baseName = "sensor";
}
OpaConfigurator::~OpaConfigurator() {}
......
......@@ -44,7 +44,7 @@ class OpaSensorBase : public SensorBase {
public:
OpaSensorBase(const std::string& name) :
SensorBase(name),
_counterData(999) {
_counterData(static_cast<PORT_COUNTER_DATA>(999)) {
//default delta to true, as opa has only monotonic sensors usually
_delta = true;
}
......@@ -63,7 +63,7 @@ public:
int getCounterData() const { return _counterData; }
void setCounterData(int counterData) { _counterData = counterData; }
void setCounterData(int counterData) { _counterData = static_cast<PORT_COUNTER_DATA>(counterData); }
void printConfig(LOG_LEVEL ll, LOGGER& lg) {
std::string cntData("unknown");
......
......@@ -27,7 +27,7 @@ OpaSensorGroup::OpaSensorGroup(const OpaSensorGroup& other) :
OpaSensorGroup::~OpaSensorGroup() {
if(_port) {
omgt_close_port(port);
omgt_close_port(_port);
}
}
......
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