-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Linux_Wireless Plugin #3650
Linux_Wireless Plugin #3650
Conversation
Gather basic stats on linux-based wireless interfaces.
myLines := strings.Split(string(table), "\n") | ||
// split on '|' and trim the spaces | ||
h1 := strings.Split(myLines[0], "|") | ||
h2 := strings.Split(myLines[1], "|") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check that length of h2
is at least the same length as h1
(and greater than 2) so the loop on 104 and other length-assumption references don't panic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed and return proper error.
Resolved all comments from PR review.
Resolved per CI
Closing in favor of a new mac/linux combined plugin |
Gather basic stats on linux-based wireless interfaces.
Required for all PRs: