Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fixes #1013 (#1036)
Browse files Browse the repository at this point in the history
Standardisation of chrono.Chrono.Now() for setting time when an entry is added to the cache.
  • Loading branch information
kindermoumoute authored and pittma committed Jun 29, 2016
1 parent ed1733b commit b292715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/strategy/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit b292715

Please sign in to comment.