Skip to content

Conversation

@jaredhendrickson13
Copy link
Member

Fixes

…#716

This commit fixes a bug where pfSense's get_load_average() function returns a load average string that changes based on the system's language setting. Previously, the numbers in the load average string might be separated by just a space, or by a comma and a space. This inconsistency caused an error when the API tried to convert that string into a usable array of values. Now, we're ensuring the load average string is always delimited by a single space, no matter what language pfSense is using. This prevents the logic error and ensures the API can correctly convert the load average to its intended array representation.
@jaredhendrickson13 jaredhendrickson13 merged commit 34f6acc into master Jun 29, 2025
14 of 15 checks passed
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.

Uncaught RESTAPI\Responses\ServerError: Cannot parse FloatField cpu_load_avg

2 participants