From 7f6918d3f47ecbcdc598ed3b9f2e6e6078f32940 Mon Sep 17 00:00:00 2001 From: kindermoumoute Date: Tue, 28 Jun 2016 16:26:09 -0700 Subject: [PATCH] Fixes #1013 Standardisation of chrono.Chrono.Now() for setting time when an entry is added to the cache. --- control/strategy/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/strategy/cache.go b/control/strategy/cache.go index 917ce4948..45b576278 100644 --- a/control/strategy/cache.go +++ b/control/strategy/cache.go @@ -108,7 +108,7 @@ func (c *cache) put(ns string, version int, m interface{}) { } case []core.Metric: if _, ok := c.table[key]; ok { - c.table[key].time = time.Now() + c.table[key].time = chrono.Chrono.Now() c.table[key].metrics = metric } else { c.table[key] = &cachecell{