summaryrefslogtreecommitdiffstats
path: root/monitor/nonzero_speed_trust.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2018-02-16 16:11:13 -0600
committerMatthew Barth <msbarth@us.ibm.com>2018-03-01 09:09:06 -0600
commit32affb9879b18226b3a026072ce1753f03b7ca58 (patch)
tree904d3601317005055d5b7c9a7e08ed6896d9733f /monitor/nonzero_speed_trust.hpp
parent069e4405a6926cdacc33c0826075356da2cd9dbd (diff)
downloadphosphor-fan-presence-32affb9879b18226b3a026072ce1753f03b7ca58.tar.gz
phosphor-fan-presence-32affb9879b18226b3a026072ce1753f03b7ca58.zip
optimize: Tach sensors as shared pointers
The fan and trust group objects should utilize shared pointers to the tach sensor objects. This allows optimizing the storage of additional attributes associated with the tach sensors. e.g. An attribute to declare which sensors should be included in the trust determination. Tested: Current trust group associations & reactions are unchanged Change-Id: I249cc7debf467e8275fae7fa157ce97078b40802 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'monitor/nonzero_speed_trust.hpp')
-rw-r--r--monitor/nonzero_speed_trust.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/nonzero_speed_trust.hpp b/monitor/nonzero_speed_trust.hpp
index 3d14adf..93fce7d 100644
--- a/monitor/nonzero_speed_trust.hpp
+++ b/monitor/nonzero_speed_trust.hpp
@@ -53,7 +53,7 @@ class NonzeroSpeed : public Group
_sensors.end(),
[](const auto& s)
{
- return s.get()->getInput() != 0;
+ return s->getInput() != 0;
});
}
};
OpenPOWER on IntegriCloud