Skip to content

Conversation

elsbrock
Copy link
Owner

@elsbrock elsbrock commented Jul 3, 2025

The previous fix still counted servers in the availability percentage if they were marked as available by the API, even if they had never been seen. This change ensures that only servers that have actually been seen available (not showing "Never") are counted in the percentage calculation.

Instead of filtering from the availableTypes array, we now filter from supportedTypes and only count those where getLastSeenAvailable returns a non-null value.

Fixes #214

The previous fix still counted servers in the availability percentage if they were marked as available by the API, even if they had never been seen. This change ensures that only servers that have actually been seen available (not showing "Never") are counted in the percentage calculation.

Instead of filtering from the availableTypes array, we now filter from supportedTypes and only count those where getLastSeenAvailable returns a non-null value.

Fixes #214

Co-authored-by: Simon Elsbrock <[email protected]>
@elsbrock elsbrock merged commit 95d6a1e into main Jul 3, 2025
1 check failed
@elsbrock elsbrock deleted the claude/issue-214-20250703_094024 branch July 3, 2025 11:20
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.

Sum calculation bug

1 participant