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 System Stats for UnRaid 7 with only pool disks (no array) #97

Merged
merged 2 commits into from
Jan 18, 2025

Conversation

serisman
Copy link
Contributor

The System Statistics plugin is not working with the newly released UnRaid 7.0.0 when only Pool drives are used (i.e. no Array).

Navigating to the Stats tab just renders a blank page:
image

I've traced the issue down to a divide-by-zero error that causes the page to stop rendering. This PR bypasses the array calculation logic and display if there isn't an array found.

@serisman
Copy link
Contributor Author

Here is an example of the page (both tabs) rendering again after the fix was applied.

Disk Stats:

image

System Stats:

image

@serisman
Copy link
Contributor Author

Ok, I also found and fixed a bug in the Disk Usage display height calculation that was making the graph look really small.

Looking better now:

image

@bergware
Copy link
Owner

Thanks for your contribution, I wil make an update available soon.

@bergware bergware merged commit dbadf9f into bergware:master Jan 18, 2025
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.

2 participants