diff options
author | Emily Shaffer <emilyshaffer@google.com> | 2018-10-09 12:06:04 -0700 |
---|---|---|
committer | Emily Shaffer <emilyshaffer@google.com> | 2018-10-11 18:14:37 +0000 |
commit | 4001191ac3489e26c2e04ea51e1eebcdc8120775 (patch) | |
tree | 63e82fb0ca0b60072262f9c3cc79a180ef9686a2 /types.hpp | |
parent | 13e67c8d43064d58fb8c4cc7757abb823e3ac51e (diff) | |
download | phosphor-host-ipmid-4001191ac3489e26c2e04ea51e1eebcdc8120775.tar.gz phosphor-host-ipmid-4001191ac3489e26c2e04ea51e1eebcdc8120775.zip |
types: Convert ScaledOffset to double
ScaledOffset is derived from incoming int64 using pow() and there
is a use case for having a fractional or negative ScaledOffset.
Since it's derived internally and applied internally this change
should have no impact on external interfaces.
Change-Id: I419e4de089d3845295157fff440c5d8e029e7c96
Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Tested: Ran ipmitool sensor list to check value sanity
Diffstat (limited to 'types.hpp')
-rw-r--r-- | types.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -116,7 +116,7 @@ using ReadingType = uint8_t; using Multiplier = uint16_t; using OffsetB = int16_t; using Exponent = int8_t; -using ScaledOffset = int64_t; +using ScaledOffset = double; using Scale = int16_t; using Unit = std::string; using EntityType = uint8_t; |