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: use duration array length for average calculation #12

Merged
merged 3 commits into from
Nov 3, 2023

Conversation

hendriknielaender
Copy link
Owner

closes #11

With this modification, the calculateAverage method will use the count of recorded durations as the denominator when calculating the average duration per operation, which should address the concern of incorrect or inconsistent results due to multiple increments of self.totalOperations.

@FObersteiner
Copy link
Collaborator

Good morning @hendriknielaender, looks good to me :) I've started PR #13; you might need to make some small edits there to not have a merge conflict.

@hendriknielaender hendriknielaender merged commit d358be3 into main Nov 3, 2023
@hendriknielaender hendriknielaender deleted the calc-avg branch November 24, 2023 23:50
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.

calculation of average duration
2 participants