summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorEmily Shaffer <emilyshaffer@google.com>2018-10-09 12:06:04 -0700
committerEmily Shaffer <emilyshaffer@google.com>2018-10-11 18:14:37 +0000
commit4001191ac3489e26c2e04ea51e1eebcdc8120775 (patch)
tree63e82fb0ca0b60072262f9c3cc79a180ef9686a2 /types.hpp
parent13e67c8d43064d58fb8c4cc7757abb823e3ac51e (diff)
downloadphosphor-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.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.hpp b/types.hpp
index 431d5b6..70f397c 100644
--- a/types.hpp
+++ b/types.hpp
@@ -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;
OpenPOWER on IntegriCloud