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

added heartbeat #27

Merged
merged 12 commits into from
Mar 6, 2022
Merged

added heartbeat #27

merged 12 commits into from
Mar 6, 2022

Conversation

gferraro
Copy link
Contributor

No description provided.

heartbeat.go Outdated Show resolved Hide resolved
heartbeat.go Outdated
func (h *Heartbeat) updateNextBeat() bool {
h.nextEvent = time.Now().Add(interval)
if !h.window.NoWindow && h.nextEvent.After(h.end.Add(-time.Hour)) {
h.nextEvent = h.end
// always wwant an event 1 hour before end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo wwant

@gferraro gferraro marked this pull request as ready for review March 6, 2022 22:13
@gferraro gferraro merged commit bbfa9c8 into master Mar 6, 2022
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.

2 participants