We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the uptime is 0, the average template is never rendered.
average_template: >- [[[ let date = new Date(0); seconds = Math.trunc((configuration.hours_to_show * 3600) * variables.uptime / 100); date.setSeconds(seconds); return date.toISOString().substr(11, 8) + ' (' + variables.uptime.toFixed(2) + '%)'; ]]]
Code indicates that it's only rendered when value > 0:
The text was updated successfully, but these errors were encountered:
Thanks it will be available for the next release.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
When the uptime is 0, the average template is never rendered.
Code indicates that it's only rendered when value > 0:
![image](https://user-images.githubusercontent.com/1945295/215850905-0306d82d-aedc-4b05-bc90-bec7d4710ce6.png)
The text was updated successfully, but these errors were encountered: