Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Calculate IntervalDelta correctly if there are no changes to the counter #128

Merged
merged 1 commit into from
Mar 15, 2021
Merged

Calculate IntervalDelta correctly if there are no changes to the counter #128

merged 1 commit into from
Mar 15, 2021

Conversation

prburgu
Copy link
Contributor

@prburgu prburgu commented Mar 12, 2021

What is the purpose of this pull request?

This PR fixes an issue where IntervalDelta is calculated incorrectly if there is no change to the counter between update interval.

What changes did you make? (overview)

Fixed it check the last value being zero instead delta being zero.

Is there anything you'd like reviewers to focus on?

Checklist

  • I've added tests for this change
  • I've added a Changelog entry
  • I've updated documentation

@prburgu prburgu marked this pull request as ready for review March 12, 2021 20:21
@palkan palkan merged commit 9d47ffc into anycable:master Mar 15, 2021
@palkan
Copy link
Member

palkan commented Mar 15, 2021

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants