Update min and max values to thresholds if needed
In an incorrect config, thresholds may be outside of
min and max, which would cause incorrect scaling. Correct
this by changing max and min to be the outliers of min/max
and thresholds. Also make it so that the max value will be
an acceptable value by scaling up the mvalue.
Tested: ipmi sensor list with bad scaled sensor works,
unit-test added to verfiy as well
Change-Id: I934efc87b09cd131e8b85a30697b3167437de4d4
Signed-off-by: James Feist <james.feist@linux.intel.com>
3 files changed