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

updating counterDelta func #374

Merged

Conversation

justadogistaken
Copy link
Contributor

I tried to fix negative numbers by calculating counter delta in uint64CounterDelta.

However more massive numbers emerged. I guess math.MaxUint64 - previous + current is the root cause.

The upper bound for each counter is not available now. So, I made some small change here. Which is returning 0 directly when previous counter value > current counter value.

@justadogistaken justadogistaken self-assigned this Nov 22, 2023
@justadogistaken justadogistaken added the workflow/merge-ready merge-ready: code is ready and can be merged label Nov 22, 2023
@waynepeking348 waynepeking348 merged commit 16eeb08 into kubewharf:main Nov 22, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
workflow/merge-ready merge-ready: code is ready and can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants