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

belchertown.py: Use floats for the charts JSON #186

Merged
merged 2 commits into from
Jul 5, 2019

Conversation

ShadowsFriend
Copy link
Contributor

This PR contains the changes discussed in #185. It changes the conversion from integer to floats and also includes a small fix for the capitalization in graphs.conf.example.

Using integer as numerical type in the JSON containing charts data can
lead to loss of precision for values that can reasonably be floats as
they get truncated in the process.

As JavaScript only knows a floating point numerical type anyway, change
that conversion to float.
@poblabs poblabs merged commit 67692f8 into poblabs:development Jul 5, 2019
@ShadowsFriend ShadowsFriend deleted the chartfloat_fix branch July 6, 2019 19:22
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

Successfully merging this pull request may close these issues.

None yet

2 participants