diff --git a/src/index.js b/src/index.js index bf5a297..3c860fc 100644 --- a/src/index.js +++ b/src/index.js @@ -278,7 +278,6 @@ class RuntimeMetrics { } _cpuHeap() { - RuntimeMetrics.measureCpuHeap(this); const reg = this.registry; this._intervals.push(reg.schedulePeriodically(RuntimeMetrics.measureCpuHeap, 60000, this)); } diff --git a/test/nodemetrics.test.js b/test/nodemetrics.test.js index 3f33399..101b4a3 100644 --- a/test/nodemetrics.test.js +++ b/test/nodemetrics.test.js @@ -23,7 +23,7 @@ describe('nodemetrics', () => { setTimeout(() => { const meters = registry.meters(); - assert.isTrue(meters.length > 40); + assert.isTrue(meters.length > 15); metrics.stop(); done(); });