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

Events page displays negative event detector event duration #313

Open
terrypacker opened this issue Feb 21, 2020 · 1 comment
Open

Events page displays negative event detector event duration #313

terrypacker opened this issue Feb 21, 2020 · 1 comment
Assignees
Labels

Comments

@terrypacker
Copy link
Contributor

The events page is trying compute the duration of the event when it is fired but I imagine it is trying to compute a duration based on the wrong criteria.

I am using a binary state detector for state zero for 1s on a 5s alternating point.

image

@terrypacker
Copy link
Contributor Author

I think this is the problem in events.js:

                // round to prevent infinite digests
                const time = Math.floor(new Date().valueOf() / 1000) * 1000;
                return time - this.activeTimestamp;

If time is rounded down below active timestamp then this can happen.

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

No branches or pull requests

2 participants