commit | f93b29c547b140a7b3e6329198e84970764fc18c | [log] [tgz] |
---|---|---|
author | Konstantin Aladyshev <aladyshev22@gmail.com> | Wed May 05 14:49:14 2021 +0300 |
committer | Konstantin Aladyshev <aladyshev22@gmail.com> | Wed May 05 14:49:14 2021 +0300 |
tree | 9863b9ac8f41e03daf0b5625354e6549933f1159 | |
parent | 7345ac419283973614e96534041e269a1be507aa [diff] |
sensordatahandler: Set data unavailable if value is NaN Currently if sensor value is NaN ipmid will report it as 0. There is a special bit in "Get Sensor Reading Command" that should be used to indicate not available state: 1b = reading/state unavailable The bit is also used to indicate when a reading/state is unavailable because the management controller cannot obtain a valid reading or state for the monitored entity, typically because the entity is not present. Utilize this bit to add support for not available (na) state. Example: Before: $ ipmitool sdr CPU0 | 0 degrees C | ok $ ipmitool sensor CPU0 | 0.000 | degrees C | ... After: $ ipmitool sdr CPU0 | no reading | ns $ ipmitool sensor CPU0 | na | degrees C | ... Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I05dec5baf7ef33929dd782ddeed0db83855f8bf0
To build this package, do the following steps:
1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make
To clean the repository run ./bootstrap.sh clean
.