Commit 3c9432b7 by bergquist

fix(metrics): default updateSince to ms

parent acf74cda
...@@ -222,7 +222,8 @@ func (t *StandardTimer) Update(d time.Duration) { ...@@ -222,7 +222,8 @@ func (t *StandardTimer) Update(d time.Duration) {
func (t *StandardTimer) UpdateSince(ts time.Time) { func (t *StandardTimer) UpdateSince(ts time.Time) {
t.mutex.Lock() t.mutex.Lock()
defer t.mutex.Unlock() defer t.mutex.Unlock()
t.histogram.Update(int64(time.Since(ts))) sinceMs := time.Since(ts) / time.Millisecond
t.histogram.Update(int64(sinceMs))
t.meter.Mark(1) t.meter.Mark(1)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment