From 8b3b2f70bf5f294dc89ab233d731a4a8ec421c85 Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Sun, 25 Apr 2021 19:56:09 -0400 Subject: [PATCH] Add deprecation comment on Uptime.migrateToHourlyStatistics --- core/uptime.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/uptime.go b/core/uptime.go index a03dc8af..ff604933 100644 --- a/core/uptime.go +++ b/core/uptime.go @@ -130,6 +130,8 @@ func (uptime *Uptime) recalculate() { } } +// XXX: Remove this on v3.0.0 +// Deprecated func (uptime *Uptime) migrateToHourlyStatistics() { log.Println("[migrateToHourlyStatistics] Got", len(uptime.SuccessfulExecutionsPerHour), "entries for successful executions and", len(uptime.TotalExecutionsPerHour), "entries for total executions") uptime.HourlyStatistics = make(map[int64]*HourlyUptimeStatistics)