diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-04 15:05:31 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-04 15:05:31 -0700 |
commit | 287aabcf42d4f3f8bea40f1b85945a42f5801bb1 (patch) | |
tree | 9a9546995919a30b93d24db803b260ae7a22b223 /system/api/analytics | |
parent | ae5f99260880ecc1f175d7db0dcaf6d4c890583f (diff) |
changing timestamp -> unix conversion to take into account 1000x magnitude offset
Diffstat (limited to 'system/api/analytics')
-rw-r--r-- | system/api/analytics/batch.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |