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 string to int64 conversion for SNMP input #7407

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

markdrayton
Copy link
Contributor

@markdrayton markdrayton commented Apr 24, 2020

strconv.Atoi produces a 32 bit and truncates larger inputs. Switch this to strconv.ParseInt to get an int64, matching the other conversions. Add a unit test. No changes to README.md needed.

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson danielnelson added this to the 1.14.2 milestone Apr 24, 2020
@danielnelson danielnelson added area/snmp fix pr to fix corresponding bug labels Apr 24, 2020
@danielnelson danielnelson merged commit 1bb436e into influxdata:master Apr 24, 2020
danielnelson pushed a commit that referenced this pull request Apr 24, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/snmp fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants