The type of sensor value in redfish should be double or int64?
Carol Wang
karo33bug at gmail.com
Tue Oct 15 13:57:09 AEDT 2019
Hi,
I tried to override sensor values with redfish Patch, referring to the
Voltages example of
https://github.com/openbmc/bmcweb/search?q=413961de&type=Commits, but met
an error "Invalid argument". Comparing the code
https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/sensors.hpp#L2192
and the doc
https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Sensor/Value.interface.yaml#L21,
the current code uses double type, but the doc says the value type should
be int64. It seems a scale difference. Why the code uses double here?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191015/e042ec33/attachment.htm>
More information about the openbmc
mailing list