pretty
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func predictionTimes(window time.Duration) []time.Time {
|
func predictionTimes(window time.Duration) []time.Time {
|
||||||
result := []time.Time{}
|
result := []time.Time{time.Now()}
|
||||||
last := time.Now()
|
last := time.Now()
|
||||||
for last.Before(time.Now().Add(window)) {
|
for last.Before(time.Now().Add(window)) {
|
||||||
last = last.Add(-1 * time.Hour * 24 * time.Duration(last.Day())).Add(time.Hour * 24 * 33)
|
last = last.Add(-1 * time.Hour * 24 * time.Duration(last.Day())).Add(time.Hour * 24 * 33)
|
||||||
|
|||||||
Reference in New Issue
Block a user