Skip to content

Counter is not being reset on localTick() #1

@littleant

Description

@littleant

Hi,

I was wondering, if there is a reason why the counter is never reset to 0, when localTick() is being called.
In the referenced paper the counter is always set to 0, when the value for the wall clock is being updated.

See page 5, figure 5 in the paper: The else-branch sets the counter c of node j to 0. The else-branch is being reached if the physical time l has increased.

By not resetting the counter value, we increase the risk of overflowing it. Only receiving an event will reset the counter, I believe.

I think adding counter = 0 in the copy()-call below should fix it:

Ok(local.copy(timestamp = wallClockTime))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions