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

Add automatic Conter64 wrapping #351

Merged
merged 1 commit into from
Nov 5, 2018
Merged

Conversation

SuperQ
Copy link
Member

@SuperQ SuperQ commented Nov 2, 2018

Automatically wrap Counter64 PDU values every 2^53 to avoid float64
precision loss.

Add a command line flag to enable/disable this feature, enable by
default.

Signed-off-by: Ben Kochie [email protected]

Closes: #350

@SuperQ SuperQ requested a review from brian-brazil November 2, 2018 09:39
@SuperQ SuperQ force-pushed the superq/wrap_large_counters branch from 3d47144 to 9103dd8 Compare November 2, 2018 09:40
@SuperQ SuperQ requested a review from RichiH November 2, 2018 09:40
@SuperQ SuperQ force-pushed the superq/wrap_large_counters branch 2 times, most recently from 04706dd to 1a52b32 Compare November 2, 2018 10:54
collector.go Outdated Show resolved Hide resolved
@SuperQ SuperQ force-pushed the superq/wrap_large_counters branch from 1a52b32 to e7d9f24 Compare November 2, 2018 11:08
main.go Outdated Show resolved Hide resolved
Automatically wrap Counter64 PDU values every 2^53 to avoid float64
precision loss.

Add a command line flag to enable/disable this feature, enable by
default.

Signed-off-by: Ben Kochie <[email protected]>
@SuperQ SuperQ force-pushed the superq/wrap_large_counters branch from e7d9f24 to dfa3c0d Compare November 2, 2018 11:34
@RichiH
Copy link
Member

RichiH commented Nov 2, 2018 via email

@brian-brazil brian-brazil merged commit 4cc7adb into master Nov 5, 2018
@brian-brazil brian-brazil deleted the superq/wrap_large_counters branch November 5, 2018 12:17
brian-brazil pushed a commit that referenced this pull request Feb 5, 2019
Automatically wrap Counter64 PDU values every 2^53 to avoid float64
precision loss.

Add a command line flag to enable/disable this feature, enable by
default.

Signed-off-by: Ben Kochie <[email protected]>
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.

4 participants