From 9d9918966a3962bb2381f69934b6e9aaf87ddad9 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Fri, 24 Mar 2017 07:12:09 -0600 Subject: [PATCH] History every 60 seconds instead of 1 Former-commit-id: 931a0a7c62c8149b941feed278b33b8ce60c4447 --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 913bff1..fe3eedf 100755 --- a/handlers.go +++ b/handlers.go @@ -114,7 +114,7 @@ func handlePageRequest(c *gin.Context) { var versionsChangeSums []int var versionsText []string if command[0:2] == "/h" { - versionsInt64, versionsChangeSums = p.Text.GetMajorSnapshotsAndChangeSums(1) // get snapshots 60 seconds apart + versionsInt64, versionsChangeSums = p.Text.GetMajorSnapshotsAndChangeSums(60) // get snapshots 60 seconds apart versionsText = make([]string, len(versionsInt64)) for i, v := range versionsInt64 { versionsText[i] = time.Unix(v/1000000000, 0).Format("Mon Jan 2 15:04:05 MST 2006")