Skip to content

Conversation

@sklirg
Copy link
Contributor

@sklirg sklirg commented Mar 30, 2018

This fixes a bug where "Client ports" value could be "0 / NaN" if no client ports were configured.

Client ports can be reported as 0 / NaN. The API might respond with information about number of live clients without information about total clients, if the number is 0. (Source: https://github.com/tech-server/gondul/blob/05e09f3b63269a48d1beb0dc9900b180101cec7f/web/api/public/switch-state#L28-L29 -- total is never initialized (but live is) and will therefore not exist in the json source if no client ports were configured for the switch.)

Before:
image

After:
image

Linge approves with love.

…ient ports.

This fixes a bug where "Client ports" value could be "0 / NaN" if no client ports were configured.
@KristianLyng KristianLyng merged commit d880cd2 into gathering:master Apr 6, 2018
@sklirg sklirg deleted the patch-3 branch February 11, 2020 15:05
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