Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static sensor provide only roundoff value from yaml configuration. #203

Open
Logananth-s opened this issue May 6, 2024 · 1 comment
Open

Comments

@Logananth-s
Copy link

Hi,
I'm using static sensor yaml file configuration.
Created yaml file form the dbus paths, but the values from the dbus to ipmitool sensor list is getting round off.

I'm seeing some yaml coefficients in some documentation to get sensor values,
(openbmc/docs@64e272d?diff=split&w=1)
but this calculation are differs from the code path of calculation.
Can any suggest one solid formula to use the yaml config coefficients to get the accurate sensor values in ipmitool snesor list.

@williamspatrick
Copy link
Member

Created yaml file form the dbus paths, but the values from the dbus to ipmitool sensor list is getting round off.

You realize that IPMI values are always "rounded", right? A sensor in IPMI can only represent 255 different values, which are calculated from the M and B coefficients. Anything outside those 255 distinct values is going to get rounded to the nearest one.

but this calculation are differs from the code path of calculation.

Differs how?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants