diff options
author | Matt Spinler <spinler@us.ibm.com> | 2017-07-26 15:10:48 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-30 11:31:39 +0000 |
commit | ce75b511690b68822882ed04a232bb07ec7696ff (patch) | |
tree | 26de70641e0b53b1d9b79457d70ac6d9ffbcc4d5 /monitor/tach_sensor.hpp | |
parent | c5f5351d985cf9d5d7d19de4b0d9a7ec083a4f55 (diff) | |
download | phosphor-fan-presence-ce75b511690b68822882ed04a232bb07ec7696ff.tar.gz phosphor-fan-presence-ce75b511690b68822882ed04a232bb07ec7696ff.zip |
fan-monitor: Capture more data on failure
When a fan gets set to nonfunctional, it is useful
to know how fast the rotor was actually going and
what the expected speed was.
Change-Id: I760d6fa7d193038f9740d241bf4d4d0039020f64
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/tach_sensor.hpp')
-rw-r--r-- | monitor/tach_sensor.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/monitor/tach_sensor.hpp b/monitor/tach_sensor.hpp index 84e02fe..d564f73 100644 --- a/monitor/tach_sensor.hpp +++ b/monitor/tach_sensor.hpp @@ -111,6 +111,14 @@ class TachSensor */ std::chrono::microseconds getTimeout(); + /** + * Returns the sensor name + */ + inline const std::string& name() const + { + return _name; + }; + private: /** |