From ee414df03f21598e1f69b6d070f3a85d31711dd2 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Sun, 8 Aug 2021 20:16:12 -0400 Subject: [PATCH] Add missing comment --- storage/store/memory/uptime.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/store/memory/uptime.go b/storage/store/memory/uptime.go index 5fdbca4e..44700112 100644 --- a/storage/store/memory/uptime.go +++ b/storage/store/memory/uptime.go @@ -62,6 +62,7 @@ func processUptimeAfterResult(uptime *core.Uptime, result *core.Result) { } } +// recalculateUptime calculates the uptime over the past 7 days, 24 hours and 1 hour. func recalculateUptime(uptime *core.Uptime) { uptimeBrackets := make(map[string]uint64) now := time.Now()