path: root/monitor/fan.hpp
diff options
authorMatthew Barth <>2018-02-16 16:11:13 -0600
committerMatthew Barth <>2018-03-01 09:09:06 -0600
commit32affb9879b18226b3a026072ce1753f03b7ca58 (patch)
tree904d3601317005055d5b7c9a7e08ed6896d9733f /monitor/fan.hpp
parent069e4405a6926cdacc33c0826075356da2cd9dbd (diff)
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 <>
Diffstat (limited to 'monitor/fan.hpp')
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/fan.hpp b/monitor/fan.hpp
index 0b0c047..fb87b66 100644
--- a/monitor/fan.hpp
+++ b/monitor/fan.hpp
@@ -190,7 +190,7 @@ class Fan
* The sensor objects for the fan
- std::vector<std::unique_ptr<TachSensor>> _sensors;
+ std::vector<std::shared_ptr<TachSensor>> _sensors;
* The tach trust manager object
OpenPOWER on IntegriCloud