diff --git a/libraries/metrics/memory.coffee b/libraries/metrics/memory.coffee index 1b4e1ef1bb..30f9379fd3 100644 --- a/libraries/metrics/memory.coffee +++ b/libraries/metrics/memory.coffee @@ -56,12 +56,9 @@ updateMemoryStats = (oldMem, newMem) -> module.exports = MemoryMonitor = monitor: (logger) -> - # use setTimeout add some randomisation of the start time - setTimeout () -> - interval = setInterval () -> - MemoryMonitor.Check(logger) - , oneMinute - , Math.floor Math.random()*oneMinute + interval = setInterval () -> + MemoryMonitor.Check(logger) + , oneMinute Metrics = require "./metrics" Metrics.registerDestructor () -> clearInterval(interval)