commit | 92217f05771485e12a1ce1cacb804c0e4a384d1d | [log] [tgz] |
---|---|---|
author | Johnathan Mantey <johnathanx.mantey@intel.com> | Thu Jun 20 12:43:01 2024 -0700 |
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | Thu Jul 18 18:13:16 2024 +0000 |
tree | b548e1aa899ade07d31ea06ec85eac7ac4210df6 | |
parent | 28378214620fe5b90ba2f8ac93d87c73f6b3c8ff [diff] |
Handle NaN in threshold interface dbus-sensor threshold has been changed to always create high and low interfaces. Threshold value is set to NaN when there is no actual limit. When creating threshold attributes in SDR, verify that sensor threshold value is not NaN. When getting min and max from threshold interfaces, use std::fmin and std::fmax instead of std::min and std::max. If one of the two arguments is NaN, the value of the other argument is returned. Since sensors are always created with default min/max values, the other argument is not going to be NaN. Tested: ipmitool sensor list returns without error. Sensor limit is na when threshold interface value is NaN. Credit: Signed-off-by: Zhikui Ren <zhikui.ren@intel.com> Migrated from intel-ipmi-oem: SHA: 41a6e9f336aa1161cd0680bfab5a5fe1effbe976 Change-Id: I51451aab12d9bf5cc5f2d61ff2e603839910afe0 Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage