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

fix: UptimeKuma Up/Down counts are always zero #824

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

wblew
Copy link
Contributor

@wblew wblew commented Mar 24, 2025

The Uptime Kuma enhanced application displays its monitors Up/Down live counts.

However, an UptimeKuma/UptimeKuma.php typo in its livestats() function is failing.

Thus its Up and Down counts are always zero.

This PR fixes this issue by using the correct operator: change an !== operator to the === operator.

Fix UptimeKuma::livestats() function. An incorrect !== operator, that should be
===, prevent the monitor_status metric lines from being counted by livestats().
@mvdkleijn mvdkleijn merged commit a56b812 into linuxserver:master Mar 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants