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

Fix typo in code #854

Open
TwiN opened this issue Sep 4, 2024 · 1 comment
Open

Fix typo in code #854

TwiN opened this issue Sep 4, 2024 · 1 comment

Comments

@TwiN
Copy link
Owner

TwiN commented Sep 4, 2024

// Note that this is only triggered when there are more entries than there should be after
// 32 days, despite the fact that we are deleting everything that's older than 30 days.
// This is to prevent re-iterating on every `processUptimeAfterResult` as soon as the uptime has been logged for 30 days.
if len(uptime.HourlyStatistics) > uptimeCleanUpThreshold {
sevenDaysAgo := time.Now().Add(-(uptimeRetention + time.Hour)).Unix()

sevenDaysAgo should be somethinglike timeBeforeUptimeRetention or something along those lines

@laukik-target
Copy link

Assign me please.

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

No branches or pull requests

2 participants