Skip to content

Don't round duration #29

@powellnorma

Description

@powellnorma

If the title changes every second, this watcher sends data to the server, but the duration is 0.

Reproducible via:

let count = 0;

function updateTitle() {
  count++;
  document.title = `Count: ${count}`;
}

setInterval(updateTitle, 1000);

Hm ok, the issue seems to not be related to rounding, but to duration of last event not being updated before new one get's created, so it stays at initial value (zero):

duration: TimeDelta::zero(),

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