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

#154 Allow current stat value to be zero #155

Conversation

john-tipper
Copy link
Contributor

Fixes #154. The value of a stat can be zero, yet the || statement will resolve to null if the value is 0. The change now sets the value to be null only if the stat value is undefined.

@yesoreyeram yesoreyeram merged commit 4674e53 into yesoreyeram:master Nov 16, 2020
@john-tipper john-tipper deleted the #154-Current-stat-value-can-be-zero branch November 16, 2020 16:59
@john-tipper
Copy link
Contributor Author

Thanks very much for merging so quickly, Sriram. If you get a chance, please would you mind considering releasing 1.4.1? Many thanks, John

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.

[Bug] Value of zero for current stat valuereported as "no data"
2 participants