mirror of
https://github.com/TwiN/gatus.git
synced 2024-12-14 11:58:04 +00:00
Add deprecation comment on Uptime.migrateToHourlyStatistics
This commit is contained in:
parent
4308f2c1ef
commit
8b3b2f70bf
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,8 @@ func (uptime *Uptime) recalculate() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// XXX: Remove this on v3.0.0
|
||||||
|
// Deprecated
|
||||||
func (uptime *Uptime) migrateToHourlyStatistics() {
|
func (uptime *Uptime) migrateToHourlyStatistics() {
|
||||||
log.Println("[migrateToHourlyStatistics] Got", len(uptime.SuccessfulExecutionsPerHour), "entries for successful executions and", len(uptime.TotalExecutionsPerHour), "entries for total executions")
|
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)
|
uptime.HourlyStatistics = make(map[int64]*HourlyUptimeStatistics)
|
||||||
|
|
Loading…
Reference in a new issue