Explorar el Código

return timeSpan from timers

to allow additional calculation
Brian Gough hace 10 años
padre
commit
622bbe3123
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      libraries/metrics/metrics.coffee

+ 1 - 0
libraries/metrics/metrics.coffee

@@ -35,6 +35,7 @@ module.exports =
 		done:->
 			timeSpan = new Date - this.start
 			statsd.timing(buildKey(this.key), timeSpan, this.sampleRate)
+			return timeSpan
 
 	gauge : (key, value, sampleRate = 1)->
 		statsd.gauge buildKey(key), value, sampleRate