summaryrefslogtreecommitdiffstats
path: root/monitor/nonzero_speed_trust.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'monitor/nonzero_speed_trust.hpp')
-rw-r--r--monitor/nonzero_speed_trust.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/monitor/nonzero_speed_trust.hpp b/monitor/nonzero_speed_trust.hpp
index 93fce7d..e1f787f 100644
--- a/monitor/nonzero_speed_trust.hpp
+++ b/monitor/nonzero_speed_trust.hpp
@@ -30,9 +30,10 @@ class NonzeroSpeed : public Group
/**
* Constructor
*
- * @param[in] names - the names of the sensors in the group
+ * @param[in] names - the names of the sensors and its inclusion in
+ * determining trust for the group
*/
- explicit NonzeroSpeed(const std::vector<std::string>& names) :
+ explicit NonzeroSpeed(const std::vector<GroupDefinition>& names) :
Group(names)
{
}
@@ -53,7 +54,7 @@ class NonzeroSpeed : public Group
_sensors.end(),
[](const auto& s)
{
- return s->getInput() != 0;
+ return std::get<0>(s)->getInput() != 0;
});
}
};
OpenPOWER on IntegriCloud