summaryrefslogtreecommitdiffstats
path: root/pyhwmon
diff options
context:
space:
mode:
authorEdward A. James <eajames@us.ibm.com>2016-08-11 11:02:15 -0500
committerPatrick Williams <patrick@stwcx.xyz>2016-08-22 16:23:56 +0000
commitc14f6fec3dd69511f36f6461e6795d5a84a9801e (patch)
treeb65c512392a6fe0a0d814f36da99e6d5bd619441 /pyhwmon
parent37846da5b6e7dace0fe17574f4fe8fb26df8da65 (diff)
downloadtalos-skeleton-c14f6fec3dd69511f36f6461e6795d5a84a9801e.tar.gz
talos-skeleton-c14f6fec3dd69511f36f6461e6795d5a84a9801e.zip
fix sensor scales for HWMON devices
- should only use exponential (10^x) scaling - purpose of the scale is to identify units - need adjustment factor for some sensors; internal use only depends on Id4e1dfad0def21f9f1d341d859c3b2c237dea080 resolves openbmc/openbmc#412 Change-Id: Iaf2d5e30df620212dd3c9e821d6462964520dc44 Signed-off-by: Edward A. James <eajames@us.ibm.com>
Diffstat (limited to 'pyhwmon')
-rw-r--r--pyhwmon/hwmon.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyhwmon/hwmon.py b/pyhwmon/hwmon.py
index bb363dc..e7b9f1c 100644
--- a/pyhwmon/hwmon.py
+++ b/pyhwmon/hwmon.py
@@ -24,6 +24,7 @@ HWMON_PATH = '/sys/class/hwmon'
## need a better way that is not slow
IFACE_LOOKUP = {
'units' : SensorValue.IFACE_NAME,
+ 'adjust' : HwmonSensor.IFACE_NAME,
'scale' : HwmonSensor.IFACE_NAME,
'offset' : HwmonSensor.IFACE_NAME,
'critical_upper' : SensorThresholds.IFACE_NAME,
OpenPOWER on IntegriCloud