From 287aabcf42d4f3f8bea40f1b85945a42f5801bb1 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 4 Nov 2016 15:05:31 -0700 Subject: changing timestamp -> unix conversion to take into account 1000x magnitude offset --- system/api/analytics/batch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/api/analytics/batch.go') diff --git a/system/api/analytics/batch.go b/system/api/analytics/batch.go index 4f6d57e..c4a60db 100644 --- a/system/api/analytics/batch.go +++ b/system/api/analytics/batch.go @@ -74,7 +74,7 @@ func batchPrune(threshold time.Duration) error { } // delete if timestamp is below or equal to max - ts := time.Unix(r.Timestamp, 0) + ts := time.Unix(r.Timestamp/1000, 0) if ts.Equal(max) || ts.Before(max) { err := b.Delete(k) if err != nil { -- cgit v1.2.3