Skip to content

[Question] TimedCircuitStats.getCurrentBucket() returns the previous bucket instead of current one after the reset() #390

Open
@ganesh-k-7817

Description

@ganesh-k-7817

After the reset() all the buckets were resetted and currentIndex is set to 0.

But we are returning the currentBucket (which could be something else not necessarily to be 0th bucket).

I think we should return buckets[currentIndex] after the reset(). However, since failures or successes will be captured in a different bucket only once, is it worth addressing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions